Problem | lunchbox |
---|---|
User | Qxhb3 |
Submission Time | 2023-04-16 15:00:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:9:3: error: expected initializer before ‘for’
9 | for (int i = 0; i < m; i++) {
| ^~~
lunchbox.cpp:9:19: error: ‘i’ was not declared in this scope
9 | for (int i = 0; i < m; i++) {
| ^
lunchbox.cpp:13:8: error: ‘k’ was not declared in this scope
13 | sort(k, k+m, greater<int>())
| ^
lunchbox.cpp:16:9: error: ‘N’ was not declared in this scope
16 | if (N >= k[i]) {
| ^
lunchbox.cpp:21:11: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
21 | cout << cnt << endl;
| ^~~
| int