Borderou de evaluare (job #2257318)

Utilizator iulius510iulius alexandru iulius510 Data 9 octombrie 2018 22:24:50
Problema Subsir crescator maximal Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 5

Raport evaluator

Compilare: user.cpp: In function ‘void ad(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,aib[100001],sol[100001],p,rad,M; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ struct element ~~~~~~~~~~~~~~~ { ~~ int val; ~~~~~~~~~ int ind; ~~~~~~~~~ }v[100001]; ~~~~~~~~~~~~ bool cmp(struct element x,struct element y) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { ~~ return (x.val<y.val); ~~~~~~~~~~~~~~~~~~~~~~ } ~~ void ad(int x,int val) ~~~~~~~~~~~~~~~~~~~~~~~ { ~~ for(int i=x;i<=n;i+=zeros(i)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~ user.cpp:20:25: note: in expansion of macro ‘zeros’ for(int i=x;i<=n;i+=zeros(i)) ^~~~~ user.cpp: In function ‘int 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,aib[100001],sol[100001],p,rad,M; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ struct element ~~~~~~~~~~~~~~~ {
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms1352kbLungime incorecta!00
20ms1356kbSubsir incorect!55
30ms1336kbLungime incorecta!00
40ms1340kbLungime incorecta!00
50ms1340kbLungime incorecta!00
60ms1348kbLungime incorecta!00
70ms1352kbLungime incorecta!00
864ms2496kbLungime incorecta!00
9Depăşit2248kbTime limit exceeded.0
1064ms2496kbLungime incorecta!0
Punctaj total5

Ceva nu functioneaza?