Problem adjlist
User birdbird
Submission Time 2026-08-17 17:12:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjlist.cpp: In function ‘void nodeVisiting(std::vector<int>, std::vector<int>, int)’:
adjlist.cpp:7:2: error: ‘visited’ was not declared in this scope
7 | visited[node] = true;
| ^~~~~~~
adjlist.cpp:8:16: error: ‘graph’ was not declared in this scope; did you mean ‘isgraph’?
8 | for(auto it : graph[node]) {
| ^~~~~
| isgraph
adjlist.cpp:16:9: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
16 | return nodes;
| ^~~~~
adjlist.cpp: In function ‘int main()’:
adjlist.cpp:22:12: error: ‘sync’ is not a member of ‘std::ios_base’
22 | ios_base::sync-with_stdio(0);
| ^~~~
adjlist.cpp:22:17: error: ‘with_stdio’ was not declared in this scope
22 | ios_base::sync-with_stdio(0);
| ^~~~~~~~~~
adjlist.cpp:33:36: error: expected primary-expression before ‘temp’
33 | cout &l