Borderou de evaluare (job #3175980)
Utilizator | Data | 26 noiembrie 2023 16:37:37 | |
---|---|---|---|
Problema | Cablaj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'double Graph::prims_algorithm()':
main.cpp:46:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Coordinate>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
46 | for (int j = 1; j < nodes_positions.size(); j++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:51:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Coordinate>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | for (int i = 1; i < nodes_positions.size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:57:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Coordinate>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
57 | for (int j = 0; j < nodes_positions.size(); j++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:70:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Coordinate>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
70 | for (int j = 0; j < nodes_positions.size(); j++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In constructor 'Graph::Graph()':
main.cpp:94:33: error: 'INFINIT' was not declared in this scope; did you mean 'INFINITY'?
94 | distances.push_back(INFINIT);
| ^~~~~~~
| INFINITY
main.cpp:95:21: error: 'class std::bitset<3000>' has no member named 'push_back'
95 | visited.push_back(false);
| ^~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !