Pagini recente » Borderou de evaluare (job #606492) | Borderou de evaluare (job #3231002) | Borderou de evaluare (job #1069445) | Borderou de evaluare (job #2237884) | Borderou de evaluare (job #2349094)
Borderou de evaluare (job #2349094)
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 |
1 | 3ms | 131kb | Incorect | 0 |
2 | 3ms | 131kb | OK | 10 |
3 | 5ms | 131kb | Incorect | 0 |
4 | 13ms | 262kb | OK | 10 |
5 | 17ms | 393kb | Incorect | 0 |
6 | 22ms | 393kb | Incorect | 0 |
7 | 24ms | 524kb | Incorect | 0 |
8 | 22ms | 393kb | Incorect | 0 |
9 | 23ms | 524kb | Incorect | 0 |
10 | 24ms | 524kb | Incorect | 0 |
Punctaj total | 20 |