Problem | adjlist |
---|---|
User | Hengweezy |
Submission Time | 2024-01-31 23:25:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
adjlist.cpp: In function ‘int main()’:
adjlist.cpp:16:10: error: expected ‘;’ before ‘v’
16 | if(v[x]
| ^
| ;
17 | v[x].push_back(y);
| ~
adjlist.cpp:18:20: error: expected ‘)’ before ‘;’ token
18 | v[y].push_back(x);
| ^
| )
adjlist.cpp:16:5: note: to match this ‘(’
16 | if(v[x]
| ^
adjlist.cpp:18:17: error: could not convert ‘(& v.std::map<int, std::vector<int> >::operator[](y))->std::vector<int>::push_back(x)’ from ‘void’ to ‘bool’
18 | v[y].push_back(x);
| ~~~~~~~~~~~~~~^~~
| |
| void