Problem stickytape
User lykieutrang
Submission Time 2025-06-03 23:07:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

stickytape.cpp: In function ‘int main()’:
stickytape.cpp:22:9: error: expected initializer before ‘if’
22 | if (!length.empty() && (sums.empty() || length.front() <= sums.front())) {
| ^~
stickytape.cpp:24:11: error: ‘else’ without a previous ‘if’
24 | } else {
| ^~~~
stickytape.cpp:28:13: error: ‘b’ was not declared in this scope
28 | b = length.front(); length.pop();
| ^
stickytape.cpp:30:13: error: ‘b’ was not declared in this scope
30 | b = sums.front(); sums.pop();
| ^
stickytape.cpp:32:20: error: ‘b’ was not declared in this scope
32 | ll c = a + b;
| ^