Problem | flamethrower |
---|---|
User | shawn |
Submission Time | 2024-04-06 11:45:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:8:2: error: ‘vector’ was not declared in this scope
8 | vector<long long> a(n);
| ^~~~~~
flamethrower.cpp:3:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
2 | #include <deque>
+++ |+#include <vector>
3 | using namespace std;
flamethrower.cpp:8:9: error: expected primary-expression before ‘long’
8 | vector<long long> a(n);
| ^~~~
flamethrower.cpp:11:10: error: ‘a’ was not declared in this scope
11 | cin >> a[i];
| ^
flamethrower.cpp:15:8: error: ‘a’ was not declared in this scope
15 | c += a[i];
| ^
flamethrower.cpp:20:8: error: ‘a’ was not declared in this scope
20 | c += a[i] - a[i - k];
| ^