| Problem | flamethrower |
|---|---|
| User | lxmine |
| Submission Time | 2026-05-16 11:03:51 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:7:5: error: ‘vector’ was not declared in this scope
7 | vector<int> arr(N);
| ^~~~~~
flamethrower.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
flamethrower.cpp:7:12: error: expected primary-expression before ‘int’
7 | vector<int> arr(N);
| ^~~
flamethrower.cpp:9:16: error: ‘arr’ was not declared in this scope
9 | cin >> arr[i];
| ^~~
flamethrower.cpp:13:23: error: ‘arr’ was not declared in this scope
13 | currentSum += arr[i];
| ^~~
flamethrower.cpp:17:23: error: ‘arr’ was not declared in this scope
17 | currentSum += arr[i];
| ^~~