Pagini recente » Borderou de evaluare (job #2846778) | Borderou de evaluare (job #1573836) | Borderou de evaluare (job #420672) | Borderou de evaluare (job #1536567) | Borderou de evaluare (job #1805029)
Borderou de evaluare (job #1805029)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:103:98: warning: operation on ‘x’ may be undefined [-Wsequence-point]
else printf("%d\n", aib.query(x) + aib.query(y) - 2*aib.query(x = get_lca(x,y)) + val[x]);
^
user.cpp:103:98: warning: operation on ‘x’ may be undefined [-Wsequence-point]
user.cpp:82:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("delay.in", "r", stdin);
^
user.cpp:83:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("delay.out", "w", stdout);
^
user.cpp:85:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:86:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(i=1; i<=n; ++i) scanf("%d", &val[i]);
^
user.cpp:90:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &x, &y);
^
user.cpp:98:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &q);
^
user.cpp:101:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &type, &x, &y);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 640kb | OK | 10 |
2 | 8ms | 644kb | OK | 10 |
3 | 24ms | 764kb | OK | 10 |
4 | 72ms | 1292kb | OK | 10 |
5 | 104ms | 1936kb | OK | 10 |
6 | 108ms | 1896kb | OK | 10 |
7 | 112ms | 1872kb | OK | 10 |
8 | 140ms | 2248kb | OK | 10 |
9 | 208ms | 2352kb | OK | 10 |
10 | 224ms | 2672kb | OK | 10 |
Punctaj total | 100 |