Problem | adjlist |
---|---|
User | Hytoh |
Submission Time | 2023-05-30 11:22:06 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
adjlist.cpp: In function ‘int main()’:
adjlist.cpp:12:20: error: request for member ‘push_back’ in ‘poopass.std::vector<int>::operator[](((std::vector<int>::size_type)edge1))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’}
12 | poopass[edge1].push_back(edge2);
| ^~~~~~~~~
adjlist.cpp:13:20: error: request for member ‘push_back’ in ‘poopass.std::vector<int>::operator[](((std::vector<int>::size_type)edge2))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’}
13 | poopass[edge2].push_back(edge1);
| ^~~~~~~~~
adjlist.cpp:16:36: error: request for member ‘size’ in ‘poopass.std::vector<int>::operator[](((std::vector<int>::size_type)n))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_ty