Borderou de evaluare (job #2417548)

Utilizator mateibanuBanu Matei Costin mateibanu Data 30 aprilie 2019 12:48:42
Problema Joc2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:34:51: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses] for (k=1;k<i;k++) if (sl^d[k][j]^d[i-k][j]==0) nr++;//printf("%d\n",sl^d[k][j]^d[i-k][j]); ~~~~~~~~~^~~ main.cpp:35:51: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses] for (k=1;k<j;k++) if (sl^d[i][k]^d[i][j-k]==0) nr++;//printf("%d\n",sl^d[i][k]^d[i][j-k]); ~~~~~~~~~^~~ main.cpp:36:53: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses] for (k=2;k<i;k++) if (sl^d[k-1][j]^d[i-k][j]==0) nr++;//printf("%d\n",sl^d[k-1][j]^d[i-k][j]); ~~~~~~~~~^~~ main.cpp:37:53: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses] for (k=2;k<j;k++) if (sl^d[i][k-1]^d[i][j-k]==0) nr++;//printf("%d\n",sl^d[i][k-1]^d[i][j-k]); ~~~~~~~~~^~~ main.cpp:38:41: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses] if (i>2&&j>2) if (sl^d[i-2][j-2]==0) nr++;//printf("%d\n",sl^d[i-2][j-2]); ~~~~~~~~~~~^~~ main.cpp:11:13: warning: unused variable 'n' [-Wunused-variable] int i,j,n,m,k; ^ main.cpp:11:15: warning: unused variable 'm' [-Wunused-variable] int i,j,n,m,k; ^ main.cpp:9:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("joc2.in","r",stdin); ^ main.cpp:10:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("joc2.out","w",stdout); ^ main.cpp:25:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&t); ^ main.cpp:27:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&x[i],&y[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
152ms262kbTime limit exceeded0
253ms262kbTime limit exceeded0
353ms262kbTime limit exceeded0
453ms262kbTime limit exceeded0
553ms262kbTime limit exceeded0
648ms262kbIncorect0
753ms262kbTime limit exceeded0
849ms262kbIncorect0
953ms262kbTime limit exceeded0
1053ms262kbTime limit exceeded0
1153ms262kbTime limit exceeded0
1253ms262kbTime limit exceeded0
1353ms262kbTime limit exceeded0
1453ms262kbTime limit exceeded0
1548ms262kbIncorect0
1653ms262kbTime limit exceeded0
1753ms262kbTime limit exceeded0
1853ms262kbTime limit exceeded0
1954ms262kbTime limit exceeded0
2051ms393kbTime limit exceeded0
Punctaj total0

Ceva nu functioneaza?