Runtime error

consider a program having multiple test cases :
i am getting crt answer for only first few cases and getting wrong for remaining cases even if all the cases are same
For example
ans : 5
10 test cases
input:
4 3 5 2
4 3 5 2
4 3 5 2
4 3 5 2
4 3 5 2
4 3 5 2
4 3 5 2
4 3 5 2
4 3 5 2
4 3 5 2
output:
5
5
2
2
2
2
2
2
2
2
pls help me this is my first contest

It will be great if you could mention the problem number.

its a contest problem.i cant mention it directly so i am using the example

mentioned now

You’re indirectly asking us to debug your code for an ongoing contest. Obviously this is not allowed, the point of the contest is that you figure it out yourself.

4 Likes