Problem lunchbox
User AwkUngenially
Submission Time 2025-03-31 13:26:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:8:2: error: expected ‘,’ or ‘;’ before ‘string’
8 | string a[p];
| ^~~~~~
lunchbox.cpp:12:3: error: ‘a’ was not declared in this scope
12 | a[x-1] = z;
| ^
lunchbox.cpp:14:7: error: ‘a’ was not declared in this scope
14 | sort(a.begin, a.end());
| ^
lunchbox.cpp:15:15: error: expected ‘)’ before ‘;’ token
15 | while (y >= 0; x++;) {
| ~ ^
| )
lunchbox.cpp:15:21: error: expected primary-expression before ‘)’ token
15 | while (y >= 0; x++;) {
| ^