Pagini recente » Borderou de evaluare (job #1171991) | Borderou de evaluare (job #110689) | Borderou de evaluare (job #27066) | Borderou de evaluare (job #2490543) | Borderou de evaluare (job #2597238)
Borderou de evaluare (job #2597238)
Raport evaluator
Compilare:
main.cpp: In function 'void add(int)':
main.cpp:18:19: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
#define zeros(x) x&(x-1)^x
^
main.cpp:27:28: note: in expansion of macro 'zeros'
for (;pos < NMAX; pos += zeros(pos)){
^~~~~
main.cpp: In function 'int query(int)':
main.cpp:18:19: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
#define zeros(x) x&(x-1)^x
^
main.cpp:34:25: note: in expansion of macro 'zeros'
for (;pos > 0; pos -= zeros(pos)){
^~~~~
main.cpp: In function 'int main()':
main.cpp:42:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("permutariab.in","r",stdin);
^
main.cpp:43:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("permutariab.out","w",stdout);
^
main.cpp:44:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
main.cpp:46:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
^
main.cpp:50:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &b[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 2ms | 131kb | OK | 10 |
3 | 3ms | 262kb | OK | 10 |
4 | 3ms | 262kb | OK | 10 |
5 | 3ms | 262kb | OK | 10 |
6 | 3ms | 131kb | OK | 10 |
7 | 2ms | 131kb | OK | 10 |
8 | 400ms | 1572kb | Time limit exceeded | 0 |
9 | 403ms | 1572kb | Time limit exceeded | 0 |
10 | 91ms | 1703kb | OK | 10 |
Punctaj total | 80 |