| Problem | mountainjourney2 |
|---|---|
| User | zerathebat |
| Submission Time | 2026-06-26 16:58:36 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
mountainjourney2.cpp: In function ‘int main()’:
mountainjourney2.cpp:26:18: error: lvalue required as left operand of assignment
26 | if (i + 1 = r)
| ^
mountainjourney2.cpp:27:35: error: expected ‘)’ before ‘;’ token
27 | ans = min(vec[i + 2] - vec[i];
| ~ ^
| )
mountainjourney2.cpp:28:36: error: expected ‘)’ before ‘;’ token
28 | else ans = min(vec[i+1]-vec[i];
| ~ ^
| )
mountainjourney2.cpp: In lambda function:
mountainjourney2.cpp:38:29: error: expected ‘)’ before ‘;’ token
38 | for (int i = 0; i < n; i++;
| ~ ^
| )
mountainjourney2.cpp: In function ‘int main()’:
mountainjourney2.cpp:44:9: error: could not convert ‘ok.main()::<lambda(long long int)>