| Problem | lunchbox |
|---|---|
| User | SMJ360 |
| Submission Time | 2026-03-03 16:03:02 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:5:9: error: expected primary-expression before ‘int’
5 | cin >> int N >> int m;
| ^~~
lunchbox.cpp:6:8: error: ‘N’ was not declared in this scope
6 | int k[N];
| ^
lunchbox.cpp:8:10: error: ‘k’ was not declared in this scope
8 | cin >> k[i]
| ^
lunchbox.cpp:13:3: error: expected ‘,’ or ‘;’ before ‘for’
13 | for (int i = 0; i < N; i++) {
| ^~~
lunchbox.cpp:13:29: error: expected ‘;’ before ‘)’ token
13 | for (int i = 0; i < N; i++) {
| ^
| ;
lunchbox.cpp:22:1: error: expected ‘}’ at end of input
22 | }
| ^
lunchbox.cpp:7:30: note: to match this ‘{’
7 | for (int i = 0; i < N; i++) {
| ^
lunchbox.cpp:22:1: error: expected ‘}’ at end of input
22 |