Borderou de evaluare (job #1780337)

Utilizator PopoviciRobertPopovici Robert PopoviciRobert Data 16 octombrie 2016 00:58:46
Problema Secvbest Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

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
10ms276kbOK10
20ms300kbOK10
320ms552kbOK10
440ms824kbOK10
560ms1104kbOK10
6160ms3000kbOK10
7160ms3000kbOK10
8236ms2996kbOK10
9236ms2992kbOK10
10236ms2996kbOK10
Punctaj total100

Ceva nu functioneaza?