Problem flamethrower
User rasquait
Submission Time 2025-12-01 10:35:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:9:10: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’
9 | vector<n> t;
| ^
flamethrower.cpp:9:10: note: expected a type, got ‘n’
flamethrower.cpp:9:10: error: template argument 2 is invalid
flamethrower.cpp:10:7: error: ‘i’ was not declared in this scope
10 | for (i=0; i < n; i++) {int e; cin >> e; t.push_back(e);}
| ^
flamethrower.cpp:10:44: error: request for member ‘push_back’ in ‘t’, which is of non-class type ‘int’
10 | for (i=0; i < n; i++) {int e; cin >> e; t.push_back(e);}
| ^~~~~~~~~
flamethrower.cpp:12:7: error: ‘i’ was not declared in this scope
12 | for (i=0; i < n-k; i++) {int sum = 0;
| ^
flamethrower.cpp:13:14: error: ‘ii’ was not declared in this scope