Borderou de evaluare (job #2417598)

Utilizator mateibanuBanu Matei Costin mateibanu Data 30 aprilie 2019 15:01:54
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:63:33: 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:65:33: 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:67:33: 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:69:33: 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:71:29: 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:21:13: warning: unused variable 'n' [-Wunused-variable] int i,j,n,m,k; ^ main.cpp:21:15: warning: unused variable 'm' [-Wunused-variable] int i,j,n,m,k; ^ main.cpp:17: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:19: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:45:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&t); ^ main.cpp:49: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
153ms262kbTime limit exceeded0
252ms241kbTime limit exceeded0
348ms262kbIncorect0
454ms241kbTime limit exceeded0
552ms237kbTime limit exceeded0
653ms262kbTime limit exceeded0
753ms262kbTime limit exceeded0
853ms262kbTime limit exceeded0
952ms241kbTime limit exceeded0
1048ms262kbIncorect0
1153ms262kbTime limit exceeded0
1254ms253kbTime limit exceeded0
1353ms262kbTime limit exceeded0
1453ms262kbTime limit exceeded0
1553ms262kbTime limit exceeded0
1652ms245kbTime limit exceeded0
1748ms262kbIncorect0
1853ms237kbTime limit exceeded0
1953ms262kbTime limit exceeded0
2053ms262kbTime limit exceeded0
Punctaj total0

Ceva nu functioneaza?