Borderou de evaluare (job #1090965)

Utilizator manutrutaEmanuel Truta manutruta Data 23 ianuarie 2014 12:46:52
Problema Arbori indexati binar Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘void update(int, int)’: user.cpp:6:30: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zero(x) (x ^ (x - 1) & x) ^ user.cpp:18:16: note: in expansion of macro ‘zero’ ind += zero(ind); ^ user.cpp: In function ‘int query(int)’: user.cpp:6:30: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zero(x) (x ^ (x - 1) & x) ^ user.cpp:27:16: note: in expansion of macro ‘zero’ ind -= zero(ind); ^ user.cpp: In function ‘int search(int)’: user.cpp:42:22: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (nr < sum && sum < query(mij + 1) || nr > sum && sum > query(mij - 1)) { ^ user.cpp:52:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms408kbOK10
24ms416kbOK10
38ms436kbOK10
432ms508kbOK10
576ms548kbOK10
6124ms668kbIncorect0
7132ms744kbIncorect0
8192ms800kbIncorect0
9192ms796kbIncorect0
10192ms796kbIncorect0
Punctaj total50

Ceva nu functioneaza?