Borderou de evaluare (job #1332569)

Utilizator casuneanu.andreiCasuneanu Andrei Dan casuneanu.andrei Data 2 februarie 2015 10:33:29
Problema Arbori indexati binar Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int suma(int)’: user.cpp:5:33: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define p2mare(x) ((x ^ (x - 1) & x)) ^ user.cpp:42:29: note: in expansion of macro ‘p2mare’ for (aux=p; aux>0; aux-=p2mare(aux)) ^ user.cpp: In function ‘void update(int, int)’: user.cpp:5:33: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define p2mare(x) ((x ^ (x - 1) & x)) ^ user.cpp:50:30: note: in expansion of macro ‘p2mare’ for (aux=p; aux<=n; aux+=p2mare(aux)) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms392kbOK10
20ms408kbOK10
34ms420kbOK10
428ms508kbOK10
568ms548kbOK10
6104ms656kbOK10
7112ms732kbOK10
8164ms788kbOK10
9160ms792kbOK10
10164ms792kbOK10
Punctaj total100

Ceva nu functioneaza?