Don’t write stuff like “How many numbers:” and “\nEnter number %d”. Online Judges (OJ) do not work this way.
Online Judges compile your code and then produce an output file against the input files which are known as test cases.
Then, If the output file produced by your code does match the Accepted output files stored in the OJ, your submission will be accepted.
Suppose you are told to read 2 integers and print their sum in a single line. The for input:
101 202
the desired output should be.
303
So, if the output of your code is
303
then the submission will be accepted.
But if the output of your code is:
The sum is 303
then your output does not match with the desired output and so the code will not be accepted.
So, in order to get your codes accepted, you have to output the result in the way which was explained in the problem statement.
Fix your code according to the problem statement to get Accepted verdict.