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