Borderou de evaluare (job #2365573)
Raport evaluator
Compilare:
main.cpp: In function 'int lca(int, int)':
main.cpp:30:23: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
int z=lsb(lvlx-lvly);
~~~~^~
main.cpp:2:17: note: in definition of macro 'lsb'
#define lsb(i) (i&(-i))
^
main.cpp: In function 'int main()':
main.cpp:54: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:55: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:57: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:61:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&anc[i][0]);
^
main.cpp:79:28: 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 | 7ms | 2621kb | OK | 10 | 10 |
2 | 8ms | 2621kb | OK | 10 | 10 |
3 | 28ms | 3538kb | OK | 10 | 10 |
4 | 261ms | 8650kb | OK | 10 | 10 |
5 | 316ms | 12451kb | OK | 10 | 10 |
6 | 497ms | 12582kb | OK | 10 | 10 |
7 | 2800ms | 16515kb | Time limit exceeded | 0 | 0 |
8 | 2091ms | 15073kb | OK | 10 | 0 |
9 | 2802ms | 15597kb | Time limit exceeded | 0 |
10 | 2803ms | 15597kb | Time limit exceeded | 0 |
Punctaj total | 60 |