Borderou de evaluare (job #2789381)
Utilizator | Data | 27 octombrie 2021 14:53:04 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:60:24: error: 'map' has not been declared
60 | void BFS(int nodS, map<int, bool>& vizitat, vector<int>& distanta)
| ^~~
main.cpp:60:27: error: expected ',' or '...' before '<' token
60 | void BFS(int nodS, map<int, bool>& vizitat, vector<int>& distanta)
| ^
main.cpp: In member function 'void Graf::distanteBFS(int)':
main.cpp:53:36: error: no matching function for call to 'Graf::BFS(int&, std::vector<bool>&, std::vector<int>&)'
53 | BFS(nodS, vizitat, distanta);
| ^
main.cpp:60:10: note: candidate: 'void Graf::BFS(int, int)'
60 | void BFS(int nodS, map<int, bool>& vizitat, vector<int>& distanta)
| ^~~
main.cpp:60:10: note: candidate expects 2 arguments, 3 provided
main.cpp: In member function 'void Graf::BFS(int, int)':
main.cpp:65:9: error: 'vizitat' was not declared in this scope
65 | vizitat[nodS] = true;
| ^~~~~~~
main.cpp:66:9: error: 'distanta' was not declared in this scope; did you mean 'distanteBFS'?
66 | distanta[nodS] = 0;
| ^~~~~~~~
| distanteBFS
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !