# include
#include
# define NUM 1000
Int turns NUM (NUM), s (NUM);
using namespace std;
Int main () {
Int I, j, N, M;
Cin> N;
Cin> M;
Int sum=0, t=1, maxi=0, su=0;
for(i=0; ifor(j=0; J Cin> Turns up [I] [j];
for(i=0; isum=0;
for(j=1; JSum=sum + turns up [I] [j];
}
S [I]=abs (a sum);
If (s [I] & gt; Maxi)
{
Maxi=s [I];
T=I + 1;
}
}
for(i=0; iSu=su + turns up [I] [0] - [I] s;
Coutreturn 0;
}
CodePudding user response:
Probably because you didn't do input validation, input data outside expectations, will go wrong, you define the largest 1000 array of cin is less than 1 and greater than 1000 do not checkCodePudding user response:
CCF platform is what brushCodePudding user response: