Problem | lunchbox |
---|---|
User | parkjimn |
Submission Time | 2025-06-19 14:18:14 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp:12:10: error: expected constructor, destructor, or type conversion before ‘(’ token
12 | sort (arr.begin(),arr.end());
| ^
lunchbox.cpp:15:5: error: expected ‘,’ or ‘;’ before ‘long’
15 | long long cuurc = 0;
| ^~~~
lunchbox.cpp:16:5: error: expected unqualified-id before ‘while’
16 | while (cuurc < num && ans + arr[cuurc])
| ^~~~~
lunchbox.cpp:18:9: error: ‘schools’ does not name a type
18 | schools+=1;
| ^~~~~~~
lunchbox.cpp:19:9: error: ‘cuurc’ does not name a type
19 | cuurc ++;
| ^~~~~
lunchbox.cpp:20:5: error: expected declaration before ‘}’ token
20 | }
| ^
lunchbox.cpp:21:5: error: ‘cout’ does not name a type
21 | cout << schools;
| ^~~~