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