Problem adjlist
User Aum
Submission Time 2023-11-09 09:04:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjlist.cpp:2:1: error: ‘vector’ does not name a type
2 | vector<int> g[1005];
| ^~~~~~
adjlist.cpp:4:1: error: ‘cin’ does not name a type
4 | cin >> V >> E;
| ^~~
adjlist.cpp:5:1: error: expected unqualified-id before ‘for’
5 | for (int i = 0; i < E; i++) {
| ^~~
adjlist.cpp:5:17: error: ‘i’ does not name a type
5 | for (int i = 0; i < E; i++) {
| ^
adjlist.cpp:5:24: error: ‘i’ does not name a type
5 | for (int i = 0; i < E; i++) {
| ^
adjlist.cpp:11:1: error: expected unqualified-id before ‘for’
11 | for (int i = 0; i < V; i++) {
| ^~~
adjlist.cpp:11:17: error: ‘i’ does not name a type
11 | for (int i = 0; i < V; i++) {
| ^
adjlist.cpp:11:24: error: ‘i’ does not name a type
11 | for (int i = 0; i < V; i++) {
| ^