Problem | foreveralone |
---|---|
User | blob |
Submission Time | 2023-11-20 10:41:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
foreveralone.cpp: In function ‘int main()’:
foreveralone.cpp:12:15: error: request for member ‘push_back’ in ‘adjList.std::vector<int>::operator[](((std::vector<int>::size_type)A))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’}
12 | adjList[A].push_back(B);
| ^~~~~~~~~
foreveralone.cpp:13:15: error: request for member ‘push_back’ in ‘adjList.std::vector<int>::operator[](((std::vector<int>::size_type)B))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’}
13 | adjList[B].push_back(A);
| ^~~~~~~~~
foreveralone.cpp:18:18: error: request for member ‘empty’ in ‘adjList.std::vector<int>::operator[](((std::vector<int>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’}