Borderou de evaluare (job #2946955)
Utilizator | Data | 25 noiembrie 2022 14:41:21 | |
---|---|---|---|
Problema | Ciclu | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'bool Bellman_Ford_negativ(int)':
main.cpp:3:5: error: 'vector' was not declared in this scope
3 | vector<long long> distanta = vector<long long>(n+1,infinit);
| ^~~~~~
main.cpp:3:12: error: expected primary-expression before 'long'
3 | vector<long long> distanta = vector<long long>(n+1,infinit);
| ^~~~
main.cpp:6:12: error: expected primary-expression before 'int'
6 | vector<int> nr_update = vector<int>(n+1, 0);
| ^~~
main.cpp:9:12: error: expected primary-expression before 'bool'
9 | vector<bool> in_coada = vector<bool>(n+1, false);
| ^~~~
main.cpp:10:26: error: 'n' was not declared in this scope
10 | for (int i = 1; i <= n; i++)
| ^
main.cpp:13:13: error: 'distanta' was not declared in this scope
13 | if (distanta[i] == infinit)
| ^~~~~~~~
main.cpp:13:28: error: 'infinit' was not declared in this scope
13 | if (distanta[i] == infinit)
| ^~~~~~~
main.cpp:15:13: error: 'queue' was not declared in this scope
15 | queue<int> coada;
| ^~~~~
main.cpp:15:19: error: expected primary-expression before 'int'
15 | queue<int> coada;
| ^~~
main.cpp:16:13: error: 'coada' was not declared in this scope
16 | coada.push(i);
| ^~~~~
main.cpp:18:13: error: 'nr_update' was not declared in this scope
18 | nr_update[i] = 1;
| ^~~~~~~~~
main.cpp:19:13: error: 'in_coada' was not declared in this scope
19 | in_coada[i] = true;
| ^~~~~~~~
main.cpp:28:34: error: 'lista_adiacenta' was not declared in this scope
28 | for (auto elem : lista_adiacenta[nod])
| ^~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:84:5: error: 'f' was not declared in this scope
84 | f >> n >> m;
| ^
main.cpp:84:10: error: 'n' was not declared in this scope
84 | f >> n >> m;
| ^
main.cpp:84:15: error: 'm' was not declared in this scope
84 | f >> n >> m;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !