Pagini recente » Borderou de evaluare (job #205707) | Borderou de evaluare (job #1843342) | Borderou de evaluare (job #2869943) | Borderou de evaluare (job #637278) | Borderou de evaluare (job #2583188)
Borderou de evaluare (job #2583188)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:19:14: warning: array subscript has type 'char' [-Wchar-subscripts]
if (pos[ch][0] == make_pair(0, 0))
^
main.cpp:20:11: warning: array subscript has type 'char' [-Wchar-subscripts]
pos[ch][0] = {i, j};
^
main.cpp:22:11: warning: array subscript has type 'char' [-Wchar-subscripts]
pos[ch][1] = {i, j};
^
main.cpp:32:23: warning: array subscript has type 'char' [-Wchar-subscripts]
dp[i][j] = (pos[cr][j].first - 1) + cst[pos[cr][j].first][pos[cr][j].second];
^
main.cpp:32:51: warning: array subscript has type 'char' [-Wchar-subscripts]
dp[i][j] = (pos[cr][j].first - 1) + cst[pos[cr][j].first][pos[cr][j].second];
^
main.cpp:32:69: warning: array subscript has type 'char' [-Wchar-subscripts]
dp[i][j] = (pos[cr][j].first - 1) + cst[pos[cr][j].first][pos[cr][j].second];
^
main.cpp:36:56: warning: array subscript has type 'char' [-Wchar-subscripts]
dp[i][j] = min(dp[i][j], dp[i - 1][k] + abs(pos[cr][j].first - pos[at][k].first) + cst[pos[cr][j].first][pos[cr][j].second]);
^
main.cpp:36:75: warning: array subscript has type 'char' [-Wchar-subscripts]
dp[i][j] = min(dp[i][j], dp[i - 1][k] + abs(pos[cr][j].first - pos[at][k].first) + cst[pos[cr][j].first][pos[cr][j].second]);
^
main.cpp:36:99: warning: array subscript has type 'char' [-Wchar-subscripts]
dp[i][j] = min(dp[i][j], dp[i - 1][k] + abs(pos[cr][j].first - pos[at][k].first) + cst[pos[cr][j].first][pos[cr][j].second]);
^
main.cpp:36:117: warning: array subscript has type 'char' [-Wchar-subscripts]
dp[i][j] = min(dp[i][j], dp[i - 1][k] + abs(pos[cr][j].first - pos[at][k].first) + cst[pos[cr][j].first][pos[cr][j].second]);
^
main.cpp:12:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("shift.in", "r", stdin);
^
main.cpp:13:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("shift.out", "w", stdout);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 10 | 100 |
2 | 2ms | 131kb | OK | 10 |
3 | 2ms | 131kb | OK | 10 |
4 | 3ms | 131kb | OK | 10 |
5 | 8ms | 655kb | OK | 10 |
6 | 10ms | 786kb | OK | 10 |
7 | 11ms | 917kb | OK | 10 |
8 | 13ms | 1048kb | OK | 10 |
9 | 13ms | 1048kb | OK | 10 |
10 | 10ms | 1048kb | OK | 10 |
Punctaj total | 100 |