Borderou de evaluare (job #1756714)

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

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
10ms400kbOK10
20ms416kbOK10
34ms428kbOK10
428ms508kbOK10
564ms404kbOK10
696ms524kbIncorect0
7104ms524kbIncorect0
8148ms524kbIncorect0
9148ms524kbIncorect0
10148ms524kbIncorect0
Punctaj total50

Ceva nu functioneaza?