Borderou de evaluare (job #1040192)

Utilizator dan.ghitaDan Ghita dan.ghita Data 24 noiembrie 2013 08:12:53
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:19: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeros(x) x&(x-1)^x ^ user.cpp:12:25: note: in expansion of macro ‘zeros’ for(int i=poz; i<=n; i+=zeros(i)){ ^ user.cpp: In function ‘int query(int)’: user.cpp:5:19: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeros(x) x&(x-1)^x ^ user.cpp:20:24: note: in expansion of macro ‘zeros’ for(int i=poz; i>0; i-=zeros(i)){ ^ user.cpp: In function ‘int main()’: user.cpp:60:17: warning: ‘pmx’ may be used uninitialized in this function [-Wmaybe-uninitialized] sir(pmx, mx); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms436kbLungime incorecta!00
24ms508kbLungime incorecta!00
34ms456kbLungime incorecta!00
44ms480kbLungime incorecta!00
54ms492kbLungime incorecta!00
60ms384kbKilled by signal 11(SIGSEGV).00
70ms392kbKilled by signal 11(SIGSEGV).00
80ms388kbKilled by signal 11(SIGSEGV).00
90ms388kbKilled by signal 11(SIGSEGV).0
100ms388kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?