Problem flamethrower_ex
User AltheaZ
Submission Time 2023-11-06 12:27:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower_ex.cpp: In function ‘int main()’:
flamethrower_ex.cpp:14:20: error: ‘nj’ was not declared in this scope; did you mean ‘j’?
14 | for (int j=0;j+k<=nj++){
| ^~
| j
flamethrower_ex.cpp:14:24: error: expected ‘;’ before ‘)’ token
14 | for (int j=0;j+k<=nj++){
| ^
| ;
flamethrower_ex.cpp:21:11: error: expected ‘;’ before ‘return’
21 | cout<<sum
| ^
| ;
22 |
23 | return 0;
| ~~~~~~