Problem lunchbox
User meal
Submission Time 2024-11-05 16:01:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp:3:26: error: expected constructor, destructor, or type conversion before ‘(’ token
3 | ios_base::sync_with_stdio(false);
| ^
lunchbox.cpp:4:1: error: ‘cin’ does not name a type; did you mean ‘sin’?
4 | cin.tie(0);
| ^~~
| sin
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:11:2: error: expected ‘,’ or ‘;’ before ‘for’
11 | for (int count = 0; count < y; count ++){
| ^~~
lunchbox.cpp:11:22: error: parse error in template argument list
11 | for (int count = 0; count < y; count ++){
| ^~~~~~~~~
lunchbox.cpp:11:22: error: statement cannot resolve address of overloaded function
lunchbox.cpp:11:39: error: no post-increment operator for type
11 | for (int count = 0; count < y; count ++){
| ^~
lunchbox.cpp:16:8: error: expected ‘(’ before ‘x’
16 | while x > 0{