Problem | adjlist |
---|---|
User | ultbiaslia |
Submission Time | 2023-11-10 13:26:04 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
adjlist.cpp: In function ‘int main()’:
adjlist.cpp:4:1: error: ‘vector’ was not declared in this scope
4 | vector<int> g[10000];
| ^~~~~~
adjlist.cpp:4:8: error: expected primary-expression before ‘int’
4 | vector<int> g[10000];
| ^~~
adjlist.cpp:6:1: error: ‘cin’ was not declared in this scope
6 | cin >> V >> E;
| ^~~
adjlist.cpp:9:5: error: ‘g’ was not declared in this scope
9 | g[a].push_back(b);
| ^
adjlist.cpp:14:2: error: ‘cout’ was not declared in this scope
14 | cout << j;
| ^~~~
adjlist.cpp:17:8: error: expected primary-expression before ‘=’ token
17 | return= 0;
| ^
adjlist.cpp:18:1: error: expected ‘}’ at end of input
18 | }
| ^
adjlist.cpp:7:29: note: to match this ‘{’
7 | for (int i = 0; i < E; i++) {
| ^
adjlist.cpp:18:1: error: expected