Problem | lunchbox |
---|---|
User | jambusk |
Submission Time | 2025-06-18 15:19:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cc1plus: error: ‘::main’ must return ‘int’
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:12:17: error: ‘a’ was not declared in this scope
12 | int a; cin >> a;
| ^
lunchbox.cpp: At global scope:
lunchbox.cpp:15:10: error: expected initializer before ‘-’ token
15 | int ans - 0;
| ^
lunchbox.cpp:16:2: error: expected unqualified-id before ‘while’
16 | while (not pq.empty()) {
| ^~~~~
lunchbox.cpp:22:2: error: ‘cout’ does not name a type
22 | cout << and;
| ^~~~
lunchbox.cpp:23:1: error: expected declaration before ‘}’ token
23 | }
| ^
lunchbox.cpp:24:2: error: expected unqualified-id before ‘return’
24 | return 0;
| ^~~~~~
lunchbox.cpp:25:1: error: expected declaration before ‘}’ token
25 | }
| ^