Borderou de evaluare (job #2583188)

Utilizator StarGold2Emanuel Nrx StarGold2 Data 17 martie 2020 21:05:12
Problema Shift Status done
Runda Arhiva Monthly Compilator cpp-64 | Vezi sursa
Scor 100

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
12ms131kbOK10100
22ms131kbOK10
32ms131kbOK10
43ms131kbOK10
58ms655kbOK10
610ms786kbOK10
711ms917kbOK10
813ms1048kbOK10
913ms1048kbOK10
1010ms1048kbOK10
Punctaj total100

Ceva nu functioneaza?