Problem adjlist
User 2Princes1Lance
Submission Time 2023-12-15 14:34:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjlist.cpp: In function ‘int main()’:
adjlist.cpp:13:31: error: request for member ‘push_back’ in ‘*(adj_lis + (((sizetype)transfer) + 18446744073709551615))’, which is of non-class type ‘std::vector<std::vector<int> >(std::vector<int>)’
13 | adj_lis[transfer - 1].push_back(transfer2);
| ^~~~~~~~~
adjlist.cpp:14:32: error: request for member ‘push_back’ in ‘*(adj_lis + (((sizetype)transfer2) + 18446744073709551615))’, which is of non-class type ‘std::vector<std::vector<int> >(std::vector<int>)’
14 | adj_lis[transfer2 - 1].push_back(transfer);
| ^~~~~~~~~
adjlist.cpp:16:26: error: no matching function for call to ‘begin(std::vector<std::vector<int> > (&)(std::vector<int>))’
16 | for (vector<int> i : adj_lis){
| ^~~~~~~
In file included from /usr/include/c++/9/bits/ra