Pagini recente » Borderou de evaluare (job #2681802) | Borderou de evaluare (job #1780338)
Borderou de evaluare (job #1780338)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:41:30: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses]
while(e>=b&&dp[1-i&1][j-1]+sp[j-1]<=dp[1-i&1][dq[e]]+sp[dq[e]])
^
user.cpp:41:54: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses]
while(e>=b&&dp[1-i&1][j-1]+sp[j-1]<=dp[1-i&1][dq[e]]+sp[dq[e]])
^
user.cpp:47:27: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses]
dp[i&1][j]=dp[1-i&1][dq[b]]+s-(sp[j]-sp[dq[b]]);
^
user.cpp:49:24: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses]
if(best>dp[1-i&1][last]-sp[last])
^
user.cpp:50:23: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses]
best=dp[1-i&1][last]-sp[last];
^
user.cpp:19:13: warning: unused variable ‘poz’ [-Wunused-variable]
int i,j,poz,b,e,last,n,k,s,x;
^
user.cpp:23:37: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi,"%d %d %d " ,&n,&k,&s);
^
user.cpp:25:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi,"%d " ,&x);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 276kb | OK | 10 |
2 | 0ms | 296kb | OK | 10 |
3 | 20ms | 552kb | OK | 10 |
4 | 40ms | 820kb | OK | 10 |
5 | 60ms | 1100kb | OK | 10 |
6 | 160ms | 3000kb | OK | 10 |
7 | 160ms | 2992kb | OK | 10 |
8 | 236ms | 2992kb | OK | 10 |
9 | 236ms | 2992kb | OK | 10 |
10 | 236ms | 2996kb | OK | 10 |
Punctaj total | 100 |