Borderou de evaluare (job #1726292)

Utilizator FredyLup Lucia Fredy Data 7 iulie 2016 18:11:32
Problema Arbori indexati binar Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void adauga(int, int)’: user.cpp:14:36: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] for(; pos<=n; pos+=(pos^(pos-1)&pos)) ^ user.cpp: In function ‘int calc(int)’: user.cpp:23:35: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] for(; pos>0; pos-=(pos^(pos-1)&pos)) ^ user.cpp: In function ‘int main()’: user.cpp:76:35: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] for(j=i; j<=n; j+=(j^(j-1)&j)) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms436kbOK10
20ms444kbOK10
34ms460kbOK10
428ms544kbOK10
564ms580kbOK10
692ms700kbOK10
7104ms772kbOK10
8144ms828kbOK10
9144ms828kbOK10
10144ms828kbOK10
Punctaj total100

Ceva nu functioneaza?