Problem adjlist
User TngShihAn
Submission Time 2023-11-10 10:52:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjlist.cpp: In function ‘int main()’:
adjlist.cpp:7:8: error: expected ‘;’ before ‘n’
7 | cin n >> e;
| ^~
| ;
adjlist.cpp:8:20: error: expected ‘;’ before ‘<’ token
8 | for (int i=0, i<e; i++) {
| ^
| ;
adjlist.cpp:8:20: error: expected primary-expression before ‘<’ token
adjlist.cpp:10:14: error: ‘class std::vector<int>’ has no member named ‘pushback’; did you mean ‘push_back’?
10 | g[a].pushback[b];
| ^~~~~~~~
| push_back
adjlist.cpp:11:14: error: ‘class std::vector<int>’ has no member named ‘pushback’; did you mean ‘push_back’?
11 | g[b].pushback[a];
| ^~~~~~~~
| push_back
adjlist.cpp:12:12: error: ‘int1’ was not declared in this scope; did you mean ‘int’?
12 | } for (int1=0; i<n; i++) {
|