Borderou de evaluare (job #2349094)

Utilizator ApostolIlieDanielApostol Daniel ApostolIlieDaniel Data 20 februarie 2019 10:22:41
Problema Banana Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 20

Raport evaluator

Compilare: main.cpp: In function 'bool cmp2(coord, coord)': main.cpp:16:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (a.y == b.y)return a.x < b.x; return a.y < b.y; ^~ main.cpp:16:38: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' if (a.y == b.y)return a.x < b.x; return a.y < b.y; ^~~~~~ main.cpp: In function 'bool vecin(int, int)': main.cpp:19:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (a[x].x == a[y].x && abs (a[x].y - a[y].y) == 1) ^~ main.cpp:20:22: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' return true; if (a[x].y == a[y].y && abs (a[x].x - a[y].x) == 1) ^~ main.cpp:20:22: warning: this 'if' clause does not guard... [-Wmisleading-indentation] main.cpp:21:21: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' return true;return false; ^~~~~~ main.cpp: In function 'int main()': main.cpp:48:14: warning: this 'for' clause does not guard... [-Wmisleading-indentation] }for (i = 1; i <= n; i++) ^~~ main.cpp:49:32: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' car[tata[i]]++;nr = 0; ^~ main.cpp:53:80: warning: this 'for' clause does not guard... [-Wmisleading-indentation] sort (sol + 1, sol + nr + 1);rez=0;for (i = nr; i > nr - k; i--) ^~~ main.cpp:54:91: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' rez += sol[i];printf ("%d", rez); ^~~~~~ main.cpp:28:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("banana.in", "r", stdin); ^ main.cpp:29:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("banana.out", "w", stdout); ^ main.cpp:30:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf ("%d%d", &n, &k); ^ main.cpp:32:37: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf ("%d%d", &a[i].x, &a[i].y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
13ms131kbIncorect0
23ms131kbOK10
35ms131kbIncorect0
413ms262kbOK10
517ms393kbIncorect0
622ms393kbIncorect0
724ms524kbIncorect0
822ms393kbIncorect0
923ms524kbIncorect0
1024ms524kbIncorect0
Punctaj total20

Ceva nu functioneaza?