Pagini recente » Borderou de evaluare (job #254171) | Borderou de evaluare (job #1818592) | Borderou de evaluare (job #788337) | Borderou de evaluare (job #2216292) | Borderou de evaluare (job #2353201)
Borderou de evaluare (job #2353201)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:79:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if (ans < k[y] && a[x][i] - a[y][ans] > a[y][ans + 1] - a[x][i] || ans == 0)
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:87:40: warning: unused variable 'ans' [-Wunused-variable]
int med = (sp[y] - sp[x - 1]) / 2, ans = 0;
^~~
main.cpp:56:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("qvect.in", "r", stdin);
^
main.cpp:57:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("qvect.out", "w", stdout);
^
main.cpp:58:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &q);
^
main.cpp:60:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &k[i]);
^
main.cpp:62:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i][j]);
^
main.cpp:66:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &t, &x, &y);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 262kb | OK | 5 |
2 | 3ms | 262kb | OK | 5 |
3 | 169ms | 917kb | OK | 5 |
4 | 500ms | 2097kb | Time limit exceeded | 0 |
5 | 2ms | 131kb | OK | 5 |
6 | 52ms | 524kb | OK | 5 |
7 | 404ms | 2228kb | OK | 5 |
8 | 64ms | 655kb | OK | 5 |
9 | 214ms | 1179kb | OK | 5 |
10 | 502ms | 1835kb | Time limit exceeded | 0 |
11 | 503ms | 1966kb | Time limit exceeded | 0 |
12 | 428ms | 1835kb | OK | 5 |
13 | 503ms | 1966kb | Time limit exceeded | 0 |
14 | 443ms | 2097kb | OK | 5 |
15 | 500ms | 2097kb | Time limit exceeded | 0 |
16 | 319ms | 2097kb | OK | 5 |
17 | 362ms | 1966kb | OK | 5 |
18 | 423ms | 1835kb | OK | 5 |
19 | 485ms | 2097kb | OK | 5 |
20 | 503ms | 2097kb | Time limit exceeded | 0 |
Punctaj total | 70 |