Borderou de evaluare (job #3184842)
Utilizator | Data | 17 decembrie 2023 10:53:11 | |
---|---|---|---|
Problema | Algoritmul Bellman-Ford | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:1: error: 'queue' does not name a type
12 | queue<int>
| ^~~~~
main.cpp: In function 'void Bellman_Ford()':
main.cpp:31:9: error: 'dist' was not declared in this scope
31 | dist[i] = 1e9;
| ^~~~
main.cpp:33:5: error: 'dist' was not declared in this scope
33 | dist[1] = 0;
| ^~~~
main.cpp:34:5: error: 'q' was not declared in this scope
34 | q.push(1);
| ^
main.cpp:49:25: error: 'i' was not declared in this scope; did you mean 'it'?
49 | if(!viz[i])
| ^
| it
main.cpp: In function 'void afisare()':
main.cpp:70:17: error: 'dist' was not declared in this scope
70 | cout << dist[i] << ' ';
| ^~~~
main.cpp: In function 'int main()':
main.cpp:77:19: error: expected ';' before 'afisare'
77 | Bellman_Ford()
| ^
| ;
78 | afisare();
| ~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !