Borderou de evaluare (job #1756715)

Utilizator crushackPopescu Silviu crushack Data 13 septembrie 2016 15:11:28
Problema Arbori indexati binar Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void update(std::vector<int>&, int, int)’: user.cpp:4:23: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeros(x) ((x) & (x - 1) ^ (x)) ^ user.cpp:9:41: note: in expansion of macro ‘zeros’ for (; pos < (int) aib.size(); pos += zeros(pos)) { ^ user.cpp: In function ‘int query(const std::vector<int>&, int)’: user.cpp:4:23: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeros(x) ((x) & (x - 1) ^ (x)) ^ user.cpp:16:26: note: in expansion of macro ‘zeros’ for (; pos > 0; pos -= zeros(pos)) { ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms404kbOK10
20ms412kbOK10
34ms428kbOK10
428ms512kbOK10
564ms524kbOK10
696ms524kbOK10
7104ms524kbOK10
8144ms524kbOK10
9144ms524kbOK10
10144ms524kbOK10
Punctaj total100

Ceva nu functioneaza?