Borderou de evaluare (job #1152868)

Utilizator gbi250Gabriela Moldovan gbi250 Data 25 martie 2014 00:32:07
Problema Schi Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void update(int, int)’: user.cpp:2:34: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeros( x ) ( x ^ (x - 1) & x ) ^ user.cpp:55:37: note: in expansion of macro ‘zeros’ for(int i = index; i <= n; i += zeros(i) ) ^ user.cpp: In function ‘int AIB_sum(int)’: user.cpp:2:34: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeros( x ) ( x ^ (x - 1) & x ) ^ user.cpp:62:37: note: in expansion of macro ‘zeros’ for(int i = index; i >= 1; i -= zeros(i)) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms236kbOK5
20ms232kbOK5
30ms232kbOK5
40ms236kbOK5
50ms232kbOK5
60ms232kbOK5
74ms236kbOK5
84ms236kbOK5
94ms252kbOK5
104ms276kbOK5
114ms288kbOK5
128ms320kbOK5
138ms348kbOK5
1416ms404kbOK5
1520ms464kbOK5
1624ms492kbOK5
1724ms528kbOK5
1828ms560kbOK5
1928ms576kbOK5
2032ms576kbOK5
Punctaj total100

Ceva nu functioneaza?