Pagini recente » Borderou de evaluare (job #2351430) | Borderou de evaluare (job #468242) | Borderou de evaluare (job #2739020) | Borderou de evaluare (job #2818263) | Borderou de evaluare (job #2635043)
Borderou de evaluare (job #2635043)
Raport evaluator
Compilare:
main.cpp:4:19: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
#define log(x) 31 - __builtin_clz(x)
~~~^~~~~~~~~~~~~~~~~~
main.cpp:8:7: note: in expansion of macro 'log'
seg[log(N/(log(N) >> 1))+2][N], v[(N<<1)+1], size;
^~~
main.cpp:8:14: note: in expansion of macro 'log'
seg[log(N/(log(N) >> 1))+2][N], v[(N<<1)+1], size;
^~~
main.cpp: In function 'int main()':
main.cpp:4:19: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
#define log(x) 31 - __builtin_clz(x)
~~~^~~~~~~~~~~~~~~~~~
main.cpp:63:7: note: in expansion of macro 'log'
B = log(n) >> 1;
^~~
main.cpp:87:54: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
seg[i][j] = cmp(seg[i-1][j], seg[i-1][j + (1<<i-1)]);
~^~
main.cpp:58:32: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("lca.in", "r", stdin);
^
main.cpp:59:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("lca.out", "w", stdout);
^
main.cpp:62: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:65:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &j);
^
main.cpp:91:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &x, &y);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 10 | 10 |
2 | 3ms | 262kb | OK | 10 | 10 |
3 | 19ms | 1048kb | OK | 10 | 10 |
4 | 173ms | 5111kb | OK | 10 | 10 |
5 | 183ms | 8126kb | OK | 10 | 10 |
6 | 336ms | 8388kb | OK | 10 | 10 |
7 | 984ms | 15859kb | OK | 10 | 10 |
8 | 1881ms | 10784kb | OK | 10 | 30 |
9 | 2463ms | 11796kb | OK | 10 |
10 | 2641ms | 12189kb | OK | 10 |
Punctaj total | 100 |