Pagini recente » Borderou de evaluare (job #1079109) | Borderou de evaluare (job #1947500) | Borderou de evaluare (job #3174864) | Borderou de evaluare (job #3202658) | Borderou de evaluare (job #2635044)
Borderou de evaluare (job #2635044)
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 | 189ms | 5242kb | OK | 10 | 10 |
5 | 209ms | 8126kb | OK | 10 | 10 |
6 | 309ms | 8388kb | OK | 10 | 10 |
7 | 987ms | 15728kb | OK | 10 | 10 |
8 | 1603ms | 10878kb | OK | 10 | 30 |
9 | 2423ms | 11796kb | OK | 10 |
10 | 2685ms | 12189kb | OK | 10 |
Punctaj total | 100 |