Problem | adjlist |
---|---|
User | blob |
Submission Time | 2023-11-17 11:13:03 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
adjlist.cpp: In function ‘int main()’:
adjlist.cpp:5:2: error: expected initializer before ‘cin’
5 | cin >> n >> e >> w;
| ^~~
adjlist.cpp:8:2: error: expected initializer before ‘int’
8 | int adj[w]
| ^~~
adjlist.cpp:12:15: error: ‘i’ was not declared in this scope
12 | for (int i=1;i<=n;i++){
| ^
adjlist.cpp:19:4: error: ‘adj’ was not declared in this scope
19 | adj[n].push_back(make_pair(k,l));
| ^~~
adjlist.cpp:24:3: error: ‘adj’ was not declared in this scope
24 | adj[n].push_back(make_pair(adj[w]))
| ^~~
adjlist.cpp:24:34: error: ‘w’ was not declared in this scope
24 | adj[n].push_back(make_pair(adj[w]))
| ^
adjlist.cpp:29:16: error: ‘x’ was not declared in this scope
29 | for (int x=1;x<=n;x++){
| ^
adjlist.cpp:36:1: error: expected ‘}’ at end of