Your program has a mistake,please look at the tenth line of your program,you can't declare loss like this:" loss ",it's not like vector.Just declare loss like this:" loss[10000]",you will get AC.Good lucky to you! :wink:(I'm not good at English,I hope you can understand what I say :oops: )
I just changed your program a little,but I got AC,can you find the difference between yours and mine? :wink: [cpp] #include <iostream> using namespace std;
int main() { int t, first, count,last,max;
while(cin >> first >> last){ max=0; cout << first << " " << last << " "; if(first>=last ...