Problem | lunchbox |
---|---|
User | rheau140030 |
Submission Time | 2023-11-23 11:54:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:6:6: error: ‘k’ was not declared in this scope
6 | for(k=0; i<n; k++){
| ^
lunchbox.cpp:6:11: error: ‘i’ was not declared in this scope
6 | for(k=0; i<n; k++){
| ^
lunchbox.cpp:6:13: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | for(k=0; i<n; k++){
| ^
| yn
lunchbox.cpp:7:16: error: ‘arr’ was not declared in this scope
7 | int min_num = arr[k];
| ^~~
lunchbox.cpp:9:19: error: ‘minn_idx’ was not declared in this scope
9 | if (arr[i] < arr[minn_idx])
| ^~~~~~~~
lunchbox.cpp:10:3: error: ‘min_idx’ was not declared in this scope
10 | min_idx = i;
| ^~~~~~~
lunchbox.cpp:12:6: error: ‘min_idx’ was not declared in this scope
12 | if (min_idx != k)
| ^~~~~~~