Problem buyingcandy
User jamestan
Submission Time 2023-12-24 18:06:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

buyingcandy.cpp: In function ‘int main()’:
buyingcandy.cpp:30:33: error: ‘dist’ was not declared in this scope; did you mean ‘dis’?
30 | while (idx<k && arr[i]>=dist[idx].first){
| ^~~~
| dis