Borderou de evaluare (job #1018573)

Utilizator httpsLup Vasile https Data 29 octombrie 2013 19:24:55
Problema Arbori indexati binar Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void adauga(int, int)’: user.cpp:11:36: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] for(; pos<=n; pos+=(pos^(pos-1)&pos)) aib[pos]+=x; ^ user.cpp: In function ‘int calc(int)’: user.cpp:16:35: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] for(; pos>0; pos-=(pos^(pos-1)&pos)) sum+=aib[pos]; ^ user.cpp: In function ‘int main()’: user.cpp:60:35: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] for(j=i; j<=n; j+=(j^(j-1)&j)) aib[j]+=s; ^ user.cpp: In function ‘int binsrc(int)’: user.cpp:21:17: warning: ‘m’ may be used uninitialized in this function [-Wmaybe-uninitialized] int s=1,d=n,m,k; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms400kbOK10
24ms416kbOK10
38ms428kbOK10
428ms500kbOK10
564ms540kbOK10
696ms660kbOK10
7104ms736kbOK10
8144ms792kbOK10
9148ms796kbOK10
10148ms792kbOK10
Punctaj total100

Ceva nu functioneaza?