Pagini recente » Borderou de evaluare (job #1927445) | Borderou de evaluare (job #3120726) | Borderou de evaluare (job #125476) | Borderou de evaluare (job #364902) | Borderou de evaluare (job #1250708)
Borderou de evaluare (job #1250708)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(int)’:
user.cpp:8:28: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for (; x<=n; x+=x^(x-1)&x)
^
user.cpp: In function ‘int query(int)’:
user.cpp:15:25: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for (; x; x-=x^(x-1)&x);
^
user.cpp: In function ‘int main()’:
user.cpp:40:35: 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:41:37: 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:43:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:45:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 256kb | Incorect | 0 |
2 | 0ms | 260kb | Incorect | 0 |
3 | 0ms | 256kb | Incorect | 0 |
4 | 0ms | 264kb | Incorect | 0 |
5 | 0ms | 260kb | Incorect | 0 |
6 | 0ms | 264kb | Incorect | 0 |
7 | 0ms | 272kb | Incorect | 0 |
8 | 0ms | 276kb | OK | 5 |
9 | 0ms | 288kb | Incorect | 0 |
10 | 0ms | 296kb | Incorect | 0 |
11 | 4ms | 320kb | Incorect | 0 |
12 | 4ms | 352kb | Incorect | 0 |
13 | 8ms | 376kb | Incorect | 0 |
14 | 12ms | 436kb | Incorect | 0 |
15 | 16ms | 492kb | Incorect | 0 |
16 | 16ms | 528kb | Incorect | 0 |
17 | 20ms | 552kb | Incorect | 0 |
18 | 20ms | 584kb | Incorect | 0 |
19 | 24ms | 600kb | OK | 5 |
20 | 24ms | 596kb | Incorect | 0 |
Punctaj total | 10 |