Problem | oranges2 |
---|---|
User | PlayVoltz |
Submission Time | 2023-09-06 15:09:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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()]){
| ^
oranges2.cpp: In function ‘int main()’:
oranges2.cpp:80:3: error: ‘precalc’ was not declared in this scope
80 | precalc(i);
| ^~~~~~~