Borderou de evaluare (job #2940531)
Utilizator | Data | 15 noiembrie 2022 19:44:57 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:12: error: variable 'std::ifstream in' has initializer but incomplete type
5 | ifstream in("dijkstra.in");
| ^
main.cpp:6:13: error: variable 'std::ifstream out' has initializer but incomplete type
6 | ifstream out("dijkstra.out");
| ^
main.cpp: In function 'void dijkstra()':
main.cpp:24:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for(int i=0; i<v[a.first].size(); i++)
| ~^~~~~~~~~~~~~~~~~~
main.cpp:26:17: warning: unused variable 'x' [-Wunused-variable]
26 | int x=a.first;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !