Problem oranges2
User PlayVoltz
Submission Time 2023-09-06 15:09:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

oranges2.cpp: In function ‘int query(long int, long int)’:
oranges2.cpp:52:22: error: no match for ‘operator[]’ (operand types are ‘std::vector<std::pair<long int, long int> > [100000]’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long int, long int> >, std::pair<long int, long int> >::value_type’ {aka ‘std::pair<long int, long int>’})
52 | for (auto num:graph[q.front()]){
| ^