Problem | candymountain_ex |
---|---|
User | P55D2K |
Submission Time | 2023-05-30 09:11:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
candymountain_ex.cpp: In function ‘int main()’:
candymountain_ex.cpp:9:2: error: ‘vector’ was not declared in this scope
9 | vector<ll> c(n);
| ^~~~~~
candymountain_ex.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;
candymountain_ex.cpp:3:12: error: expected primary-expression before ‘long’
3 | #define ll long long
| ^~~~
candymountain_ex.cpp:9:9: note: in expansion of macro ‘ll’
9 | vector<ll> c(n);
| ^~
candymountain_ex.cpp:10:19: error: expected ‘;’ before ‘<’ token
10 | for (int i = 0, i < n; i++) { cin >> c[i]; }
| ^~
| ;
candymountain_ex.cpp:10:20: error: expected primary-expression before ‘<’ token
10 | for (int i = 0, i < n; i++)