Borderou de evaluare (job #1874788)

Utilizator Tomi98Osvath Tamas Tomi98 Data 10 februarie 2017 14:00:13
Problema Datorii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void add(int, int)’: user.cpp:3:32: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeros(x) ((x ^ (x - 1) & x)) ^ user.cpp:13:36: note: in expansion of macro ‘zeros’ for (int i = poz; i <= n; i += zeros(i)) ^ user.cpp: In function ‘int query(int)’: user.cpp:3:32: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeros(x) ((x ^ (x - 1) & x)) ^ user.cpp:19:36: note: in expansion of macro ‘zeros’ for (int i = poz; i >= 1; i -= zeros(i)) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
188ms480kbCorect!20
288ms480kbCorect!20
388ms476kbCorect!20
484ms476kbCorect!20
588ms480kbCorect!20
Punctaj total100

Ceva nu functioneaza?