Problem adjlist
User kashsinghal
Submission Time 2023-11-10 15:25:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjlist.cpp: In function ‘int32_t main()’:
adjlist.cpp:7:1: error: expected initializer before ‘vector’
7 | vector<int> g[10000];
| ^~~~~~
adjlist.cpp:12:5: error: ‘g’ was not declared in this scope
12 | g[A].push_back(B); // there is an edge connecting A to B
| ^
adjlist.cpp:17:15: error: ‘g’ was not declared in this scope
17 | for (auto j: g[i]) { //iterate through vector g[i]
| ^