| Problem | hld_easy_2 |
|---|---|
| User | maximushartanto |
| Submission Time | 2025-12-28 18:01:54 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
hld_easy_2.cpp: In function ‘int main()’:
hld_easy_2.cpp:123:23: error: ‘q’ was not declared in this scope
123 | for (int t, x, y, z; q--;){
| ^
hld_easy_2.cpp:146:47: error: no matching function for call to ‘node::query(__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&, int&)’
146 | res += root->query(pre[hpar[y]], pre[y], z);
| ^
hld_easy_2.cpp:48:6: note: candidate: ‘i64 node::query(int, int)’
48 | i64 query(int l, int r){
| ^~~~~
hld_easy_2.cpp:48:6: note: candidate expects 2 arguments, 3 provided
hld_easy_2.cpp:152:40: error: no matching function for call to ‘node::query(__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&, int&)’
15