Pagini recente » Borderou de evaluare (job #1168847) | Borderou de evaluare (job #2885138) | Borderou de evaluare (job #1924853) | Borderou de evaluare (job #3280907) | Borderou de evaluare (job #1523104)
Borderou de evaluare (job #1523104)
Raport evaluator
Compilare:
user.cpp: In function ‘void dinamica()’:
user.cpp:21:37: warning: array subscript has type ‘char’ [-Wchar-subscripts]
m1[1][i] = (dp[1][m1[1][i-1]] <= dp[1][i]) ? m1[1][i-1] : i;
^
user.cpp:26:37: warning: array subscript has type ‘char’ [-Wchar-subscripts]
m2[1][i] = (dp[1][m2[1][i+1]] <= dp[1][i]) ? m2[1][i+1] : i;
^
user.cpp:32:70: warning: array subscript has type ‘char’ [-Wchar-subscripts]
dp[i][j] = v[i][j] + v[i-1][j] + min(dp[i-1][m1[i-1][j-1]], dp[i-1][m2[i-1][j+1]]);
^
user.cpp:32:93: warning: array subscript has type ‘char’ [-Wchar-subscripts]
dp[i][j] = v[i][j] + v[i-1][j] + min(dp[i-1][m1[i-1][j-1]], dp[i-1][m2[i-1][j+1]]);
^
user.cpp:38:43: warning: array subscript has type ‘char’ [-Wchar-subscripts]
m1[i][j] = (dp[i][m1[i][j - 1]] <= dp[i][j]) ? m1[i][j-1] : j;
^
user.cpp:43:43: warning: array subscript has type ‘char’ [-Wchar-subscripts]
m2[i][j] = (dp[i][m2[i][j + 1]] <= dp[i][j]) ? m2[i][j+1] : j;
^
user.cpp: In function ‘int main()’:
user.cpp:55:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=]
scanf("%d", &v[i][j]);
^
user.cpp:84:46: warning: array subscript has type ‘char’ [-Wchar-subscripts]
printf("%d\n", v[n][m] + dp[n][m1[n][m-1]]);
^
user.cpp:50:28: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(in, "r", stdin);
^
user.cpp:51:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(out, "w", stdout);
^
user.cpp:52:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
user.cpp:55:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i][j]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 12ms | Depăşit | Memory limit exceeded. | 0 | 0 |
2 | 8ms | 640kb | Incorect | 0 |
3 | 0ms | 384kb | OK | 10 |
4 | 0ms | 376kb | OK | 10 | 30 |
5 | 0ms | 468kb | OK | 10 |
6 | 0ms | 416kb | OK | 10 |
7 | 0ms | 368kb | Incorect | 0 | 0 |
8 | 0ms | 444kb | Incorect | 0 |
9 | 0ms | 472kb | Incorect | 0 |
10 | 12ms | Depăşit | Memory limit exceeded. | 0 |
Punctaj total | 30 |