Problem lunchbox
User rheau140030
Submission Time 2023-11-23 11:59:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:7:11: error: ‘i’ was not declared in this scope
7 | for(k=0; i<n; k++){
| ^
lunchbox.cpp:7:13: error: ‘n’ was not declared in this scope
7 | for(k=0; i<n; k++){
| ^
lunchbox.cpp:8:16: error: ‘arr’ was not declared in this scope
8 | int min_num = arr[k];
| ^~~
lunchbox.cpp:10:19: error: ‘minn_idx’ was not declared in this scope
10 | if (arr[i] < arr[minn_idx])
| ^~~~~~~~
lunchbox.cpp:11:3: error: ‘min_idx’ was not declared in this scope
11 | min_idx = i;
| ^~~~~~~
lunchbox.cpp:13:6: error: ‘min_idx’ was not declared in this scope
13 | if (min_idx != k)
| ^~~~~~~