Problem flamethrower
User Syw
Submission Time 2025-11-14 09:16:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int32_t main()’:
flamethrower.cpp:10:18: error: expected ‘;’ before ‘}’ token
10 | cin >> trees[i]
| ^
| ;
11 | }
| ~
flamethrower.cpp:14:49: error: expected ‘;’ before ‘if’
14 | curr_cost = trees[i] + trees[i+1] + trees[i+2]
| ^
| ;
15 | if (curr_cost > max_cost){
| ~~
flamethrower.cpp:19:7: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘long long int’)
19 | cout >> max_cost
| ~~~~ ^~ ~~~~~~~~
| | |
| | long long int
| std::ostream {aka std::basic_ostream<char>}
flamethrower.cpp:19:7: note: candidate: ‘operator>>(in