Borderou de evaluare (job #2824465)
Utilizator | Data | 2 ianuarie 2022 14:02:11 | |
---|---|---|---|
Problema | Roy-Floyd | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:20: error: array bound is not an integer constant before ']' token
7 | int n, strazi[n + 1][n + 1], distanta[n + 1][n + 1];
| ^
main.cpp:7:27: error: array bound is not an integer constant before ']' token
7 | int n, strazi[n + 1][n + 1], distanta[n + 1][n + 1];
| ^
main.cpp:7:44: error: array bound is not an integer constant before ']' token
7 | int n, strazi[n + 1][n + 1], distanta[n + 1][n + 1];
| ^
main.cpp:7:51: error: array bound is not an integer constant before ']' token
7 | int n, strazi[n + 1][n + 1], distanta[n + 1][n + 1];
| ^
main.cpp: In function 'int main()':
main.cpp:14:21: error: 'distanta' was not declared in this scope
14 | fin >> distanta[i][j];
| ^~~~~~~~
main.cpp:16:17: error: 'strazi' was not declared in this scope
16 | strazi[i][j] = 1;
| ^~~~~~
main.cpp:18:17: error: 'strazi' was not declared in this scope
18 | strazi[i][j] = 0;
| ^~~~~~
main.cpp:25:21: error: 'distanta' was not declared in this scope
25 | if (distanta[i][t] + distanta[t][j] < distanta[i][j] || (strazi[i][t] + strazi[t][j] > strazi[i][j] && distanta[i][j] == distanta[i][t] + distanta[t][j]))
| ^~~~~~~~
main.cpp:25:74: error: 'strazi' was not declared in this scope
25 | if (distanta[i][t] + distanta[t][j] < distanta[i][j] || (strazi[i][t] + strazi[t][j] > strazi[i][j] && distanta[i][j] == distanta[i][t] + distanta[t][j]))
| ^~~~~~
main.cpp:33:21: error: 'distanta' was not declared in this scope
33 | fout << distanta[i][j] << " ";
| ^~~~~~~~
main.cpp:39:21: error: 'strazi' was not declared in this scope
39 | fout << strazi[i][j] << " ";
| ^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !