Borderou de evaluare (job #1870199)
Raport evaluator
Compilare:
user.cpp: In function ‘void add(int, int)’:
user.cpp:3:32: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeros(x) ((x ^ (x - 1) & x))
^
user.cpp:13:36: note: in expansion of macro ‘zeros’
for (int i = poz; i <= n; i += zeros(i))
^
user.cpp: In function ‘int query(int)’:
user.cpp:3:32: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeros(x) ((x ^ (x - 1) & x))
^
user.cpp:19:36: note: in expansion of macro ‘zeros’
for (int i = poz; i >= 1; i -= zeros(i))
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 88ms | 472kb | Corect! | 20 |
2 | 88ms | 472kb | Corect! | 20 |
3 | 84ms | 476kb | Corect! | 20 |
4 | 88ms | 472kb | Corect! | 20 |
5 | 84ms | 472kb | Corect! | 20 |
Punctaj total | 100 |