Problem collectmushrooms
User Dynonychus
Submission Time 2024-01-10 23:51:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms.cpp:8:1: error: expected initializer before ‘void’
8 | void fill(deque<int> deqq, int n) {
| ^~~~
collectmushrooms.cpp: In function ‘long long int query(std::deque<long long int>, long long int, long long int)’:
collectmushrooms.cpp:33:11: error: ‘sear’ was not declared in this scope
33 | if (deqq[sear[L][j]] >= deqq[sear[R - (1 << j) + 1][j]])
| ^~~~
collectmushrooms.cpp: In function ‘void RMQ(std::deque<long long int>, long long int, std::deque<std::pair<long long int, long long int> >, long long int)’:
collectmushrooms.cpp:43:14: error: no matching function for call to ‘fill(std::deque<long long int>&, long long int&)’
43 | fill(deqq, n);
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,