| Problem | mountainjourney2 |
|---|---|
| User | TheFelixKS |
| Submission Time | 2026-06-18 13:48:20 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
mountainjourney2.cpp: In function ‘bool check(long long int, long long int, long long int)’:
mountainjourney2.cpp:25:33: error: ‘lastA’ was not declared in this scope
25 | if (cntA < n && (h[i] - lastA >= k) && (cntD == m || h[i] - lastD < k)) {
| ^~~~~
mountainjourney2.cpp:25:69: error: ‘lastD’ was not declared in this scope
25 | if (cntA < n && (h[i] - lastA >= k) && (cntD == m || h[i] - lastD < k)) {
| ^~~~~