Problem candymountain_ex
User dieunq1309
Submission Time 2024-05-28 00:32:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candymountain_ex.cpp: In function ‘int main()’:
candymountain_ex.cpp:73:21: error: expected ‘;’ before ‘<’ token
73 | for (int i = n-k, i < n; i++) res = min(res, arr[i]);
| ^~
| ;
candymountain_ex.cpp:73:22: error: expected primary-expression before ‘<’ token
73 | for (int i = n-k, i < n; i++) res = min(res, arr[i]);
| ^