Pagini recente » Borderou de evaluare (job #438535) | Borderou de evaluare (job #1698312) | Borderou de evaluare (job #1877331) | Borderou de evaluare (job #1281904) | Borderou de evaluare (job #1265164)
Borderou de evaluare (job #1265164)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(long int, long int)’:
user.cpp:11:22: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for(;poz<=n;poz+=poz&(poz-1)^poz)
^
user.cpp: In function ‘long int query(long int)’:
user.cpp:17:21: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for(;poz>0;poz-=poz&(poz-1)^poz)
^
user.cpp: In function ‘int main()’:
user.cpp:37:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("schi.in","r",stdin);
^
user.cpp:38:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("schi.out","w",stdout);
^
user.cpp:40:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&n);
^
user.cpp:44:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&a[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 260kb | OK | 5 |
2 | 0ms | 256kb | OK | 5 |
3 | 0ms | 256kb | OK | 5 |
4 | 0ms | 260kb | OK | 5 |
5 | 0ms | 260kb | OK | 5 |
6 | 0ms | 260kb | OK | 5 |
7 | 0ms | 264kb | OK | 5 |
8 | 0ms | 268kb | OK | 5 |
9 | 0ms | 276kb | OK | 5 |
10 | 0ms | 296kb | OK | 5 |
11 | 4ms | 312kb | OK | 5 |
12 | 4ms | 348kb | OK | 5 |
13 | 8ms | 368kb | OK | 5 |
14 | 12ms | 432kb | OK | 5 |
15 | 16ms | 484kb | OK | 5 |
16 | 20ms | 520kb | OK | 5 |
17 | 24ms | 548kb | OK | 5 |
18 | 24ms | 584kb | OK | 5 |
19 | 24ms | 600kb | OK | 5 |
20 | 28ms | 600kb | OK | 5 |
Punctaj total | 100 |