Problem | fenwicktree_easy |
---|---|
User | Aum |
Submission Time | 2023-11-06 19:16:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fenwicktree_easy.cpp: In function ‘int main()’:
fenwicktree_easy.cpp:9:10: error: ‘vector’ is not a member of ‘std’
9 | std::vector<int> A(N);
| ^~~~~~
fenwicktree_easy.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 |
fenwicktree_easy.cpp:9:17: error: expected primary-expression before ‘int’
9 | std::vector<int> A(N);
| ^~~
fenwicktree_easy.cpp:12:21: error: ‘A’ was not declared in this scope
12 | std::cin >> A[i];
| ^
fenwicktree_easy.cpp:19:10: error: ‘vector’ is not a member of ‘std’
19 | std::vector<int> prefix_sum(N + 1, 0);
| ^~~~~~
fenwicktree_easy.cpp:19:10: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>