Problem | lunchbox |
---|---|
User | niicoletong |
Submission Time | 2025-08-26 13:49:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp:5:2: error: expected initializer before ‘int’
5 | int N, m ki, res = 0;
| ^~~
lunchbox.cpp:7:2: error: ‘cin’ does not name a type; did you mean ‘sin’?
7 | cin >> N >> m;
| ^~~
| sin
lunchbox.cpp:9:2: error: expected unqualified-id before ‘for’
9 | for (int i = 0; i < m; i++) {
| ^~~
lunchbox.cpp:9:18: error: ‘i’ does not name a type
9 | for (int i = 0; i < m; i++) {
| ^
lunchbox.cpp:9:25: error: ‘i’ does not name a type
9 | for (int i = 0; i < m; i++) {
| ^
lunchbox.cpp:13:6: error: expected constructor, destructor, or type conversion before ‘(’ token
13 | sort( v.begin(), v.end() );
| ^
lunchbox.cpp:14:2: error: expected unqualified-id before ‘for’
14 | for (int i=0; i < m; i++){
| ^~~
lunchbox.cpp:14:16: error: ‘i’ does not name a type
14 | for (