Borderou de evaluare (job #3038681)
Utilizator | Data | 27 martie 2023 17:36:27 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp-32 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int shortest_path_bfs(int, Graph*, int, int)':
main.cpp:33:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
33 | for (int i = 0; i < graph[vertex].node.size(); i++) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:34:29: error: 'count' was not declared in this scope
34 | if (count(visited.begin(), visited.end(), graph[vertex].node[i]) == 0) {
| ^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !