Problem lunchbox
User phoenix348
Submission Time 2025-02-03 16:58:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int minCoins(std::vector<int>&, int)’:
lunchbox.cpp:8:10: error: ‘ki’ was not declared in this scope; did you mean ‘kill’?
8 | sort(ki.begin(), ki.end());
| ^~
| kill
lunchbox.cpp:12:17: error: ‘m’ was not declared in this scope
12 | for(int i = m - 1; i >= 0; i--) {
| ^
lunchbox.cpp:13:12: error: ‘N’ was not declared in this scope
13 | if(N >= ki[i]) {
| ^
lunchbox.cpp:25:12: error: ‘N’ was not declared in this scope
25 | if(N == 0)
| ^
lunchbox.cpp: At global scope:
lunchbox.cpp:32:5: error: ‘cin’ does not name a type; did you mean ‘sin’?
32 | cin>>N;
| ^~~
| sin
lunchbox.cpp:33:5: error: ‘cin’ does not name a type; did you mean ‘sin’?
33 | cin>>m;
| ^~~
| sin
lunchbox.cpp: In function ‘int m