Borderou de evaluare (job #1799659)
Utilizator | Data | 6 noiembrie 2016 16:44:41 | |
---|---|---|---|
Problema | Sortare topologica | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘std::vector<int> getTopologicalOrder(const std::vector<std::vector<int> >&)’:
user.cpp:32:74: error: invalid initialization of reference of type ‘std::vector<Color>&’ from expression of type ‘std::vector<int>’
if (colors[u] == Color::WHITE && dfs(graph, u, colors, topologicalOrder)) {
^
user.cpp:10:6: error: in passing argument 3 of ‘bool dfs(const std::vector<std::vector<int> >&, int, std::vector<Color>&, std::vector<int>&)’
bool dfs(
^
user.cpp:36:58: error: ‘reverse’ was not declared in this scope
reverse(topologicalOrder.begin(), topologicalOrder.end());
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !