Problem flamethrower
User justin271828
Submission Time 2024-05-15 20:38:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:15:41: error: expected ‘,’ before ‘+’ token
15 | for (int j = 0; j < K; j++) temp += [i+j];
| ^
| ,
flamethrower.cpp:15:41: error: expected identifier before ‘+’ token
flamethrower.cpp: In lambda function:
flamethrower.cpp:15:44: error: expected ‘{’ before ‘;’ token
15 | for (int j = 0; j < K; j++) temp += [i+j];
| ^
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:15:36: error: no match for ‘operator+=’ (operand types are ‘int’ and ‘main()::<lambda()>’)
15 | for (int j = 0; j < K; j++) temp += [i+j];