Borderou de evaluare (job #2190741)
Raport evaluator
Compilare:
user.cpp: In function ‘void aib_add(int, int)’:
user.cpp:2:19: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeros(x) x&(x-1)^x
^
user.cpp:25:33: note: in expansion of macro ‘zeros’
for (int i=pos+3;i<=Vmax;i+=zeros(i)) AIB[i] += val;
^~~~~
user.cpp: In function ‘int query(int)’:
user.cpp:2:19: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeros(x) x&(x-1)^x
^
user.cpp:30:30: note: in expansion of macro ‘zeros’
for (int i=pos+3;i>=1;i-=zeros(i)) ans += AIB[i];
^~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 1420ms | 3624kb | Incorect | 0 | 0 |
2 | 1204ms | 5280kb | Incorect | 0 |
3 | 1480ms | 6036kb | Incorect | 0 |
4 | 3120ms | 15392kb | OK | 10 |
5 | 1288ms | 9148kb | Incorect | 0 |
6 | 892ms | 6656kb | Incorect | 0 |
7 | 1660ms | 9352kb | Incorect | 0 |
8 | 1292ms | 4752kb | Incorect | 0 |
9 | 2608ms | 25612kb | Incorect | 0 |
10 | 1080ms | 7604kb | OK | 10 |
Punctaj total | 0 |