Borderou de evaluare (job #1870199)

Utilizator Tomi98Osvath Tamas Tomi98 Data 6 februarie 2017 14:40:42
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
188ms472kbCorect!20
288ms472kbCorect!20
384ms476kbCorect!20
488ms472kbCorect!20
584ms472kbCorect!20
Punctaj total100

Ceva nu functioneaza?