run time error :( (the best box problem)

i’m getting run time error … any one please tell me what is the mistake.
http://www.codechef.com/viewsolution/1319152

I hate this. It’s not your fault, it’s written in statement “The first line contains t, the number of test cases (about 10).”, replace your a[10] with a[100] and you will get AC :wink:

thanx its working :slight_smile:

try to add return 0 at the end of your main()

tried, but still not working :frowning: