Pagini recente » Borderou de evaluare (job #1289012) | Borderou de evaluare (job #656131) | Borderou de evaluare (job #453081) | Borderou de evaluare (job #1482058) | Borderou de evaluare (job #2157277)
Borderou de evaluare (job #2157277)
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 | 1288kb | OKAY! | 10 |
2 | 0ms | 1296kb | OKAY! | 10 |
3 | 0ms | 1304kb | OKAY! | 10 |
4 | 0ms | 1308kb | OKAY! | 10 |
5 | 0ms | 1320kb | OKAY! | 10 |
6 | 0ms | 1320kb | OKAY! | 10 |
7 | 4ms | 1308kb | OKAY! | 10 |
8 | 4ms | 1324kb | OKAY! | 10 |
9 | 16ms | 1516kb | OKAY! | 10 |
10 | 0ms | 1276kb | OKAY! | 10 |
Punctaj total | 100 |