Borderou de evaluare (job #2831223)
Utilizator | Data | 10 ianuarie 2022 22:56:42 | |
---|---|---|---|
Problema | Distante | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs_asmax(int, std::vector<int>&, std::vector<std::vector<int> >&, std::vector<bool>&, int&)':
main.cpp:14:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | for (int i = 0; i < lista[nod].size(); i++) {
| ~~^~~~~~~~~~~~~~~~~~~
main.cpp: In function 'void dijkstra(int, int, std::vector<std::vector<std::pair<int, int> > >&, int, std::vector<int>&)':
main.cpp:81:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
81 | for (int i = 0; i < lista[init].size(); i++) {
| ~~^~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'void citire_dijkstra()':
main.cpp:100:21: error: 'numeric_limits' is not a member of 'std'
100 | int infinit = std::numeric_limits<int>::max();
| ^~~~~~~~~~~~~~
main.cpp:100:36: error: expected primary-expression before 'int'
100 | int infinit = std::numeric_limits<int>::max();
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !