Problem cakerun
User Hijackedsoul
Submission Time 2024-07-04 22:52:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cakerun.cpp: In function ‘int main()’:
cakerun.cpp:37:19: error: ‘L’ was not declared in this scope
37 | if(max({s, e, L, R}) - min({s, e, L, R}) + 1 >= R-L+1 + e-s+1){
| ^
cakerun.cpp:37:22: error: ‘R’ was not declared in this scope
37 | if(max({s, e, L, R}) - min({s, e, L, R}) + 1 >= R-L+1 + e-s+1){
| ^
cakerun.cpp:37:24: error: no matching function for call to ‘max(<brace-enclosed initializer list>)’
37 | if(max({s, e, L, R}) - min({s, e, L, R}) + 1 >= R-L+1 + e-s+1){
| ^
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,
from cakerun.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::max(const _Tp&, cons