Borderou de evaluare (job #2257681)

Utilizator iulius510iulius alexandru iulius510 Data 10 octombrie 2018 12:45:30
Problema Subsir crescator maximal Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void update(int, int)’: user.cpp:5:26: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeros(x) (x^(x-1)&x) ~~~~~^~~~ ifstream f("scmax.in"); ~~~~~~~~~~~~~~~~~~~~~~~~ ofstream g("scmax.out"); ~~~~~~~~~~~~~~~~~~~~~~~~~ int n,sol[100001],p,rad,M,val[100001],d[100001],Max; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ struct element ~~~~~~~~~~~~~~~ { ~~ int val; ~~~~~~~~~ int ind; ~~~~~~~~~ }; ~~~ element v[100001],aib[100001]; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bool cmp(struct element x,struct element y) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { ~~ return (x.val<y.val); ~~~~~~~~~~~~~~~~~~~~~~ } ~~ void update(int x,int val) ~~~~~~~~~~~~~~~~~~~~~~~~~~~ { d[x]+=val; ~~~~~~~~~~~~~~~ for(int i=x;i<=n;i+=zeros(i)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~ user.cpp:21:25: note: in expansion of macro ‘zeros’ for(int i=x;i<=n;i+=zeros(i)) ^~~~~ user.cpp: In function ‘element calcul(int)’: user.cpp:5:26: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeros(x) (x^(x-1)&x) ~~~~~^~~~ ifstream f("scmax.in"); ~~~~~~~~~~~~~~~~~~~~~~~~ ofstream g("scmax.out"); ~~~~~~~~~~~~~~~~~~~~~~~~~ int n,sol[100001],p,rad,M,val[100001],d[100001],Max; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ struct element
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms3388kbLungime incorecta!00
20ms3392kbLungime incorecta!00
30ms3380kbLungime incorecta!00
40ms3376kbLungime incorecta!00
50ms3376kbLungime incorecta!00
60ms3384kbLungime incorecta!00
70ms3388kbLungime incorecta!00
868ms3668kbLungime incorecta!00
956ms3668kbLungime incorecta!0
1064ms3664kbLungime incorecta!0
Punctaj total0

Ceva nu functioneaza?