Pagini recente » Borderou de evaluare (job #2465965) | Borderou de evaluare (job #212497) | Borderou de evaluare (job #2157275)
Borderou de evaluare (job #2157275)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:23:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘char*’ [-Wformat=]
fscanf(fi,"%d " ,&mat[i][j]);
^
user.cpp:28:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘char*’ [-Wformat=]
fscanf(fi,"%d " ,&v[i]);
^
user.cpp:35:41: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses]
if(i - v[p] > 0 && dp[1 - p & 1][i - v[p]][j] > 0) {
^
user.cpp:36:74: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses]
dp[p & 1][i][j] = max(dp[p & 1][i][j], (short) (dp[1 - p & 1][i - v[p]][j] + mat[i][j]));
^
user.cpp:39:41: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses]
if(j - v[p] > 0 && dp[1 - p & 1][i][j - v[p]] > 0) {
^
user.cpp:40:74: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses]
dp[p & 1][i][j] = max(dp[p & 1][i][j], (short) (dp[1 - p & 1][i][j - v[p]] + mat[i][j]));
^
user.cpp:20:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi,"%d " ,&n);
^
user.cpp:23:41: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi,"%d " ,&mat[i][j]);
^
user.cpp:26:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi,"%d " ,&k);
^
user.cpp:28:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi,"%d " ,&v[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 1324kb | OKAY! | 10 |
2 | 0ms | 1372kb | OKAY! | 10 |
3 | 0ms | 1384kb | OKAY! | 10 |
4 | 0ms | 1416kb | OKAY! | 10 |
5 | 0ms | 1536kb | OKAY! | 10 |
6 | 4ms | 1524kb | OKAY! | 10 |
7 | 4ms | 1496kb | OKAY! | 10 |
8 | 4ms | 1580kb | OKAY! | 10 |
9 | 16ms | Depăşit | Memory limit exceeded. | 0 |
10 | 0ms | 1284kb | OKAY! | 10 |
Punctaj total | 90 |