Problem adjlist
User IyasM
Submission Time 2025-12-22 16:05:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjlist.cpp: In function ‘int32_t main()’:
adjlist.cpp:14:3: error: ‘g’ was not declared in this scope
14 | g[a].push_back(b);
| ^
adjlist.cpp:18:19: error: ‘j’ was not declared in this scope
18 | for(int j : adj[j]) cout << j+1 << " ";
| ^