works fine on my compiler...but shows run time error when i submit..has happened many times before...

main() must be int main() and it must end with return 0; that’s the ANSI standard.

main() must return int,at the end of main(),i.e return 0.This will run your code on Codechef,but you’ll get Wrong Answer,because you need to take the input and give the output according to the format as given in the problem.So,you don’t need printf’s asking for the number of rounds,and scores.Just take the input,process and print the output.Only after then you’ll get AC,if your logic is correct,(The same applies to all other problems).
Happy Coding!!! :slight_smile:

1 Like