Borderou de evaluare (job #2933039)
Utilizator | Data | 4 noiembrie 2022 15:27:56 | |
---|---|---|---|
Problema | Retea2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'bool allBlocuriVisited()':
main.cpp:25:12: error: 'all_of' was not declared in this scope
25 | return all_of(visitedBloc.begin(), visitedBloc.end(), [](bool const& visited) { return visited; });
| ^~~~~~
main.cpp: In function 'void modifiedPrim()':
main.cpp:37:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<double, double> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | for (int i = 0; i < blocuri.size(); ++i) {
| ~~^~~~~~~~~~~~~~~~
main.cpp:36:26: warning: unused variable 'gen' [-Wunused-variable]
36 | for (auto const& gen: centrale) {
| ^~~
main.cpp: In function 'int main()':
main.cpp:95:19: error: 'setprecision' was not declared in this scope
95 | g << fixed << setprecision(7) << mstDist;
| ^~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !