| Problem | flamethrower |
|---|---|
| User | rasquait |
| Submission Time | 2025-12-01 10:36:34 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
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:48: error: request for member ‘push_back’ in ‘t’, which is of non-class type ‘int’
10 | for (int i=0; i < n; i++) {int e; cin >> e; t.push_back(e);}
| ^~~~~~~~~
flamethrower.cpp:14:19: error: request for member ‘at’ in ‘t’, which is of non-class type ‘int’
14 | sum += t.at(ii);}
| ^~
flamethrower.cpp:16:10: error: ‘sum’ was not declared in this scope
16 | cout << sum;
| ^~~