Pagini recente » Borderou de evaluare (job #1374145) | Borderou de evaluare (job #1734086) | Borderou de evaluare (job #3119060) | Borderou de evaluare (job #2864503) | Borderou de evaluare (job #1670412)
Borderou de evaluare (job #1670412)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:38:17: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses]
if(d[1-i&1][j-1][r][p]%p==r)
^
user.cpp:39:48: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses]
d[i&1][j][(r+v1[i])%p][p]=getmax(d[1-i&1][j][(r+v1[i])%p][p],getmax(d[1-i&1][j-1][r][p]+v1[i],d[i&1][j][(r+v1[i])%p][p]));
^
user.cpp:39:83: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses]
d[i&1][j][(r+v1[i])%p][p]=getmax(d[1-i&1][j][(r+v1[i])%p][p],getmax(d[1-i&1][j-1][r][p]+v1[i],d[i&1][j][(r+v1[i])%p][p]));
^
user.cpp:41:48: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses]
d[i&1][j][(r+v1[i])%p][p]=getmax(d[1-i&1][j][(r+v1[i])%p][p],d[i&1][j][(r+v1[i])%p][p]);
^
user.cpp:18: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:20: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:44: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 |
1 | 0ms | 292kb | OK | 10 |
2 | 8ms | 296kb | OK | 10 |
3 | 12ms | 292kb | OK | 10 |
4 | 32ms | 308kb | OK | 10 |
5 | 68ms | 316kb | OK | 10 |
6 | 72ms | 344kb | OK | 10 |
7 | 264ms | 1472kb | OK | 10 |
8 | 264ms | 1476kb | OK | 10 |
9 | 224ms | 1276kb | OK | 10 |
10 | 144ms | 1088kb | OK | 10 |
Punctaj total | 100 |