Borderou de evaluare (job #1018566)

Utilizator httpsLup Vasile https Data 29 octombrie 2013 19:15: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:40: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
10ms396kbOK10
24ms408kbOK10
38ms424kbOK10
432ms500kbOK10
572ms536kbOK10
6108ms652kbOK10
7116ms736kbOK10
8172ms788kbOK10
9168ms792kbOK10
10164ms788kbOK10
Punctaj total100

Ceva nu functioneaza?