Pagini recente » Borderou de evaluare (job #48614) | Borderou de evaluare (job #757094) | Borderou de evaluare (job #1594073) | Borderou de evaluare (job #1979595) | Borderou de evaluare (job #1018566)
Borderou de evaluare (job #1018566)
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 |
1 | 0ms | 396kb | OK | 10 |
2 | 4ms | 408kb | OK | 10 |
3 | 8ms | 424kb | OK | 10 |
4 | 32ms | 500kb | OK | 10 |
5 | 72ms | 536kb | OK | 10 |
6 | 108ms | 652kb | OK | 10 |
7 | 116ms | 736kb | OK | 10 |
8 | 172ms | 788kb | OK | 10 |
9 | 168ms | 792kb | OK | 10 |
10 | 164ms | 788kb | OK | 10 |
Punctaj total | 100 |