Problem flamethrower
User LYM2025
Submission Time 2025-08-20 12:12:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:6:7: error: expected ‘;’ before ‘vector’
6 | b=k-1
| ^
| ;
7 | vector<long long> v;
| ~~~~~~
flamethrower.cpp:8:20: error: conflicting declaration ‘std::vector<long long int> n’
8 | vector<long long> n;
| ^
flamethrower.cpp:4:18: note: previous declaration as ‘long long int n’
4 | long long f=0,b,n,k;
| ^
flamethrower.cpp:10:8: error: ‘v’ was not declared in this scope
10 | cin>>v[i];
| ^
flamethrower.cpp:13:6: error: invalid types ‘long long int[int]’ for array subscript
13 | n[i]=accumulate(v.begin()+f,v.begin()+b,0);
| ^
flamethrower.cpp:13:19: error: ‘v’ was not declared in this scope
13 | n[i]=accumulate(v.begin()+f,v.begin()+b,0);
| ^
flamethrower.cpp:15:22: error: request