Problem | lunchbox |
---|---|
User | Ming |
Submission Time | 2025-06-22 14:20:03 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp:10:1: error: ‘cin’ does not name a type; did you mean ‘sin’?
10 | cin >> N >> m;
| ^~~
| sin
lunchbox.cpp:12:1: error: expected unqualified-id before ‘for’
12 | for (int i = 0; i < m; i++){
| ^~~
lunchbox.cpp:12:17: error: ‘i’ does not name a type
12 | for (int i = 0; i < m; i++){
| ^
lunchbox.cpp:12:24: error: ‘i’ does not name a type
12 | for (int i = 0; i < m; i++){
| ^
lunchbox.cpp:17:5: error: expected constructor, destructor, or type conversion before ‘(’ token
17 | sort( v.begin(), v.end() );
| ^
lunchbox.cpp:19:1: error: expected unqualified-id before ‘for’
19 | for (int i = 0; i < m; i++){
| ^~~
lunchbox.cpp:19:17: error: ‘i’ does not name a type
19 | for (int i = 0; i < m; i++){
| ^
lunchbox.cpp:19:24: error: ‘i’ does not name a type
19 | f