Problem flamethrower
User ggracekkim
Submission Time 2025-09-29 16:12:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp:1:1: error: ‘include’ does not name a type
1 | include <iostream>
| ^~~~~~~
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:6:5: error: ‘cin’ was not declared in this scope
6 | cin >> N >> K;
| ^~~
flamethrower.cpp:7:5: error: ‘string’ was not declared in this scope
7 | string A,B;
| ^~~~~~
flamethrower.cpp:8:12: error: ‘A’ was not declared in this scope
8 | cin >> A >> B;
| ^
flamethrower.cpp:8:17: error: ‘B’ was not declared in this scope
8 | cin >> A >> B;
| ^
flamethrower.cpp:11:28: error: ‘k’ was not declared in this scope
11 | for (int j = 0; j < k; i++) {
| ^
flamethrower.cpp:12:9: error: ‘sum’ was not declared in this scope
12 | sum = sum + A[j]
| ^~~
flamethrower.cpp:14:12