Borderou de evaluare (job #2947412)
Utilizator | Data | 26 noiembrie 2022 02:01:27 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:1: error: 'ifstram' does not name a type
4 | ifstram f ("dijkstra.in");
| ^~~~~~~
main.cpp:5:1: error: 'ifstram' does not name a type
5 | ifstram g ("dijkstra.in");
| ^~~~~~~
main.cpp: In function 'void dijkstra(int)':
main.cpp:18:7: warning: unused variable 'cost' [-Wunused-variable]
18 | int cost = heap.top().first;
| ^~~~
main.cpp: In function 'int main()':
main.cpp:6:13: error: 'f' was not declared in this scope
6 | #define cin f
| ^
main.cpp:36:2: note: in expansion of macro 'cin'
36 | cin >> n >> m;
| ^~~
main.cpp:7:14: error: 'g' was not declared in this scope
7 | #define cout g
| ^
main.cpp:51:3: note: in expansion of macro 'cout'
51 | cout << dist[i] << ' ';
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !