Borderou de evaluare (job #1761077)

Utilizator crushackPopescu Silviu crushack Data 21 septembrie 2016 19:18:51
Problema Datorii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void update(std::vector<int>*, size_t, int)’: user.cpp:6:23: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeros(x) ((x) & ((x) - 1) ^ (x)) ^ user.cpp:14:35: note: in expansion of macro ‘zeros’ for (; pos < aib.size(); pos += zeros(pos)) { ^ user.cpp: In function ‘int query(const std::vector<int>&, size_t)’: user.cpp:6:23: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeros(x) ((x) & ((x) - 1) ^ (x)) ^ user.cpp:21:26: note: in expansion of macro ‘zeros’ for (; pos > 0; pos -= zeros(pos)) { ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
188ms476kbCorect!20
288ms472kbCorect!20
388ms476kbCorect!20
492ms476kbCorect!20
588ms472kbCorect!20
Punctaj total100

Ceva nu functioneaza?