Borderou de evaluare (job #2808238)
Utilizator | Data | 24 noiembrie 2021 19:23:05 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'void Graf::setViz(int, int)':
main.cpp:38:15: error: 'class Graf' has no member named 'viz'
38 | this->viz.assign(nod + 1, val);
| ^~~
main.cpp: In member function 'void Graf::goleste()':
main.cpp:60:9: error: 'viz' was not declared in this scope
60 | viz.clear();
| ^~~
main.cpp:61:9: error: 'nma' was not declared in this scope
61 | nma.clear();
| ^~~
main.cpp:62:9: error: 'low' was not declared in this scope
62 | low.clear();
| ^~~
main.cpp:63:9: error: 'inStruct' was not declared in this scope; did you mean 'struct'?
63 | inStruct.clear();
| ^~~~~~~~
| struct
main.cpp:64:16: error: 'stiva' was not declared in this scope
64 | while(!stiva.empty()) stiva.pop();
| ^~~~~
main.cpp:65:16: error: 'coada' was not declared in this scope
65 | while(!coada.empty()) coada.pop();
| ^~~~~
main.cpp:66:24: error: 'componente' was not declared in this scope
66 | for(auto vec : componente) vec.clear();
| ^~~~~~~~~~
main.cpp:67:9: error: 'componente' was not declared in this scope
67 | componente.clear();
| ^~~~~~~~~~
main.cpp: In member function 'void Graf::actBFS(int)':
main.cpp:126:11: error: 'class Graf' has no member named 'coada'
126 | this->coada.push(S);
| ^~~~~
main.cpp:127:11: error: 'class Graf' has no member named 'viz'
127 | this->viz[S] = 0;
| ^~~
main.cpp:128:12: error: 'coada' was not declared in this scope
128 | while(!coada.empty()){
| ^~~~~
main.cpp:131:20: error: 'viz' was not declared in this scope
131 | int dist = viz[current] + 1;
| ^~~
main.cpp: In member function 'std::vector<int> Graf::BFS(int)':
main.cpp:144:18: error: 'class Graf' has no member named 'viz'
144 | return this->viz;
| ^~~
main.cpp: In member function 'void Graf::actDFS(int)':
main.cpp:148:5: error: 'viz' was not declared in this scope
148 | viz[S] = 1;
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !