Pagini recente » Borderou de evaluare (job #2056167) | Borderou de evaluare (job #1290134) | Borderou de evaluare (job #2255263) | Borderou de evaluare (job #1524455) | Borderou de evaluare (job #1018573)
Borderou de evaluare (job #1018573)
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 |
1 | 0ms | 400kb | OK | 10 |
2 | 4ms | 416kb | OK | 10 |
3 | 8ms | 428kb | OK | 10 |
4 | 28ms | 500kb | OK | 10 |
5 | 64ms | 540kb | OK | 10 |
6 | 96ms | 660kb | OK | 10 |
7 | 104ms | 736kb | OK | 10 |
8 | 144ms | 792kb | OK | 10 |
9 | 148ms | 796kb | OK | 10 |
10 | 148ms | 792kb | OK | 10 |
Punctaj total | 100 |