Problem flamethrower
User Jatin2010
Submission Time 2024-08-14 17:04:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:5:9: error: ‘n’ was not declared in this scope
5 | cin>> n>> k;
| ^
flamethrower.cpp:5:13: error: ‘k’ was not declared in this scope
5 | cin>> n>> k;
| ^
flamethrower.cpp:7:19: error: expected primary-expression before ‘<’ token
7 | for (int i =0;i><n;i++){
| ^
flamethrower.cpp:8:10: error: ‘a’ was not declared in this scope
8 | cin>>a[i];
| ^
flamethrower.cpp:11:3: error: ‘psum’ was not declared in this scope
11 | psum[0] = 0;
| ^~~~
flamethrower.cpp:12:7: error: ‘inti’ was not declared in this scope; did you mean ‘int’?
12 | for(inti=1;i<=n;i++){
| ^~~~
| int
flamethrower.cpp:12:14: error: ‘i’ was not declared in this scope
12 | for(inti=1;i<=n;i++){
| ^<