Borderou de evaluare (job #1670332)

Utilizator PopoviciRobertPopovici Robert PopoviciRobert Data 31 martie 2016 17:40:49
Problema Tricouri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:24:17: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses] if(d[1-i&1][j-1][r][p]%p==r) ^ user.cpp:25:47: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses] d[i&1][j][(r+v[i])%p][p]=getmax(d[1-i&1][j][(r+v[i])%p][p],getmax(d[1-i&1][j-1][r][p]+v[i],d[i&1][j][(r+v[i])%p][p])); ^ user.cpp:25:81: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses] d[i&1][j][(r+v[i])%p][p]=getmax(d[1-i&1][j][(r+v[i])%p][p],getmax(d[1-i&1][j-1][r][p]+v[i],d[i&1][j][(r+v[i])%p][p])); ^ user.cpp:27:47: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses] d[i&1][j][(r+v[i])%p][p]=getmax(d[1-i&1][j][(r+v[i])%p][p],d[i&1][j][(r+v[i])%p][p]); ^ user.cpp:13:23: warning: unused variable ‘x’ [-Wunused-variable] int i,j,n,m,k,r,p,x; ^ user.cpp:16:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d%d" ,&n,&m); ^ user.cpp:18:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d" ,&v[i]); ^ user.cpp:30:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d%d" ,&k,&p); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms312kbOK10
28ms312kbOK10
312ms316kbOK10
432ms324kbOK10
5248ms328kbOK10
6Depăşit332kbTime limit exceeded.0
7Depăşit1460kbTime limit exceeded.0
8Depăşit1460kbTime limit exceeded.0
9Depăşit1268kbTime limit exceeded.0
10Depăşit1080kbTime limit exceeded.0
Punctaj total50

Ceva nu functioneaza?