Borderou de evaluare (job #579563)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Drum | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 24 ian. 2021 19:13:53 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:13:5: error: expected unqualified-id before '/' token
13 | /
| ^
main.cpp:18:5: error: expected unqualified-id before '/' token
18 | /
| ^
main.cpp: In constructor 'Graph::Graph(int)':
main.cpp:28:5: error: 'adj' was not declared in this scope
28 | adj = new list<int>[V];
| ^~~
main.cpp: At global scope:
main.cpp:31:6: error: no declaration matches 'void Graph::addEdge(int, int)'
31 | void Graph::addEdge(int v, int w)
| ^~~~~
main.cpp:31:6: note: no functions named 'void Graph::addEdge(int, int)'
main.cpp:9:7: note: 'class Graph' defined here
9 | class Graph
| ^~~~~
main.cpp: In member function 'std::__cxx11::list<int> Graph::Moore(int)':
main.cpp:66:18: error: 'adj' was not declared in this scope
66 | for (i = adj[s].begin(); i != adj[s].end(); ++i)
| ^~~
main.cpp: In function 'int main()':
main.cpp:125:5: error: expected primary-expression before '/' token
125 | /
| ^
main.cpp:126:11: error: expected primary-expression before 'g'
126 | Graph g(n+1);
| ^
main.cpp:133:9: error: 'g' was not declared in this scope
133 | g.addEdge(v, u);
| ^
main.cpp:137:22: error: 'g' was not declared in this scope
137 | list<int> road = g.Moore(1);
| ^