Problem mountainjourney2
User ilikeeggs
Submission Time 2026-07-10 09:50:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mountainjourney2.cpp: In function ‘bool check(long long int)’:
mountainjourney2.cpp:45:27: error: ‘d’ was not declared in this scope
45 | if(h[n+m-1] - h[n+m-2] < d)
| ^
mountainjourney2.cpp:48:28: error: ‘d’ was not declared in this scope
48 | if(h[i+2] - h[i] < d)
| ^