Problem | flamethrower |
---|---|
User | aj |
Submission Time | 2024-09-02 09:09:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:19:5: error: ‘vector’ was not declared in this scope
19 | vector<int> tree_cost(N);
| ^~~~~~
flamethrower.cpp:10:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
9 | #include <iostream>
+++ |+#include <vector>
10 | using namespace std;
flamethrower.cpp:19:12: error: expected primary-expression before ‘int’
19 | vector<int> tree_cost(N);
| ^~~
flamethrower.cpp:20:28: error: expected ‘)’ before ‘;’ token
20 | for (int i=0;i<=N;i=i+1;){
| ~ ^
| )
flamethrower.cpp:20:29: error: expected primary-expression before ‘)’ token
20 | for (int i=0;i<=N;i=i+1;){
| ^
flamethrower.cpp:44:1: error: expected ‘}’ at end of input
44 | }