Problem candymountain_ex
User justin271828
Submission Time 2024-12-06 20:19:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candymountain_ex.cpp: In function ‘int main()’:
candymountain_ex.cpp:10:14: error: ‘s’ was not declared in this scope
10 | if (i < K) s.insert(arr[i]);}
| ^
candymountain_ex.cpp:11:13: error: ‘s’ was not declared in this scope
11 | int ans = *s.begin();
| ^