Problem javier_the_dungeon_newbie_ex
User shenshiqi
Submission Time 2025-12-19 10:10:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

javier_the_dungeon_newbie_ex.cpp: In function ‘int main()’:
javier_the_dungeon_newbie_ex.cpp:38:14: error: request for member ‘push_back’ in ‘adjList.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)a))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’}
38 | adjList[a].push_back(b);
| ^~~~~~~~~
javier_the_dungeon_newbie_ex.cpp:39:14: error: request for member ‘push_back’ in ‘adjList.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)b))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’}
39 | adjList[b].push_back(a);
| ^~~~~~~~~