Problem flamethrower
User sqrt2
Submission Time 2025-09-25 09:07:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:19:9: error: invalid operands of types ‘int’ and ‘const char [1]’ to binary ‘operator<<’
19 | price << "";
| ~~~~~ ^~ ~~
| | |
| int const char [1]
flamethrower.cpp:21:8: error: request for member ‘push_back’ in ‘cost’, which is of non-class type ‘int [a]’
21 | cost.push_back(price);
| ^~~~~~~~~