Pagini recente » Borderou de evaluare (job #380443) | Borderou de evaluare (job #2824453) | Borderou de evaluare (job #1956245) | Borderou de evaluare (job #1483222) | Borderou de evaluare (job #1250701)
Borderou de evaluare (job #1250701)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(int)’:
user.cpp:10:15: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
x += x&(x-1)^x;
^
user.cpp: In function ‘int query(int)’:
user.cpp:19:15: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
x -= x&(x-1)^x;
^
user.cpp: In function ‘int main()’:
user.cpp:44: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:45: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:47:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:49: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 | OK | 5 |
| 2 | 0ms | 260kb | OK | 5 |
| 3 | 0ms | 252kb | OK | 5 |
| 4 | 0ms | 256kb | OK | 5 |
| 5 | 0ms | 260kb | OK | 5 |
| 6 | 0ms | 260kb | OK | 5 |
| 7 | 0ms | 260kb | OK | 5 |
| 8 | 0ms | 264kb | OK | 5 |
| 9 | 0ms | 280kb | OK | 5 |
| 10 | 0ms | 296kb | OK | 5 |
| 11 | 4ms | 312kb | OK | 5 |
| 12 | 4ms | 348kb | OK | 5 |
| 13 | 8ms | 372kb | OK | 5 |
| 14 | 12ms | 432kb | OK | 5 |
| 15 | 16ms | 492kb | OK | 5 |
| 16 | 20ms | 520kb | OK | 5 |
| 17 | 32ms | 544kb | OK | 5 |
| 18 | 24ms | 584kb | OK | 5 |
| 19 | Depăşit | 356kb | Time limit exceeded. | 0 |
| 20 | 64ms | 596kb | OK | 5 |
| Punctaj total | 95 |