Borderou de evaluare (job #1620033)

Utilizator dumbraveanbDumbravean Bogdan dumbraveanb Data 28 februarie 2016 20:19:48
Problema Vis Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:39:102: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(Ins(in, jn) && (B[in][jn] == 0 || B[in][jn] >= B[i][j] + 1) && (A[in][jn] == 0 || ok1 && A[in][jn] <= k1 || ok2 && A[in][jn] >= k2)){ ^ user.cpp:39:128: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(Ins(in, jn) && (B[in][jn] == 0 || B[in][jn] >= B[i][j] + 1) && (A[in][jn] == 0 || ok1 && A[in][jn] <= k1 || ok2 && A[in][jn] >= k2)){ ^ user.cpp:42:19: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(in == l1 && jn == c1 && !ok1) if(!ok2) ok1 = 1; else ok1 = 2; ^ user.cpp:43:19: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(in == l2 && jn == c2 && !ok2) if(!ok1) ok2 = 1; else ok2 = 2; ^ user.cpp:55:125: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(Ins(in, jn) && (C[in][jn] == 0 || C[in][jn] > C[i][j] + 1) && (A[in][jn] == 0 || A[in][jn] <= k1 || okk2 && A[in][jn] >= k2)){ ^ user.cpp:86:106: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(Ins(in, jn) && (D[in][jn] == 0 || D[in][jn] > D[i][j] + 1) && (A[in][jn] == 0 || okk1 && A[in][jn] <= k1 || A[in][jn] >= k2)){ ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms508kbIncorect0
20ms556kbOK10
3708msDepăşitMemory limit exceeded.0
4688msDepăşitMemory limit exceeded.0
5304msDepăşitMemory limit exceeded.0
6340msDepăşitMemory limit exceeded.0
7368msDepăşitMemory limit exceeded.0
8Depăşit12576kbTime limit exceeded.0
9404msDepăşitMemory limit exceeded.0
10Depăşit28268kbTime limit exceeded.0
Punctaj total10

Ceva nu functioneaza?