Borderou de evaluare (job #2404071)

Utilizator andreiudilaUdila Andrei andreiudila Data 12 aprilie 2019 11:49:55
Problema Baruri Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void update(int, int)': main.cpp:4:31: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] #define zeros(x) (x ^ (x - 1) & x) ~~~~~~~~^~~~~ using namespace std; ~~~~~~~~~~~~~~~~~~~~~ ifstream cin("baruri.in"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ofstream cout("baruri.out"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ int aib[200000]; ~~~~~~~~~~~~~~~~~ int n,x,b,b1,b2,t,m,op,d; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ ~ void update(int pos, int val){ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ pos = max(pos,0); ~~~~~~~~~~~~~~~~~~ for(int i=pos; i<=n; i += zeros(i)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:15:27: note: in expansion of macro 'zeros' for(int i=pos; i<=n; i += zeros(i)) ^~~~~ main.cpp: In function 'int query(int)': main.cpp:4:31: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] #define zeros(x) (x ^ (x - 1) & x) ~~~~~~~~^~~~~ using namespace std; ~~~~~~~~~~~~~~~~~~~~~ ifstream cin("baruri.in"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ofstream cout("baruri.out"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ int aib[200000]; ~~~~~~~~~~~~~~~~~ int n,x,b,b1,b2,t,m,op,d; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ ~ void update(int pos, int val){ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
124ms917kbIncorect0
Punctaj total0

Ceva nu functioneaza?