Problem candies_joi
User ChickenCoder
Submission Time 2023-07-02 01:07:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candies_joi.cpp: In function ‘int main()’:
candies_joi.cpp:57:2: error: ‘vector’ was not declared in this scope
57 | vector<int> ans;
| ^~~~~~
candies_joi.cpp:3:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
2 | #include <set>
+++ |+#include <vector>
3 | using namespace std;
candies_joi.cpp:57:9: error: expected primary-expression before ‘int’
57 | vector<int> ans;
| ^~~
candies_joi.cpp:118:3: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
118 | ans.push_back(sum);
| ^~~
| abs
candies_joi.cpp:122:22: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
122 | for (long long sum: ans) cout << sum << " ";
| ^~~
| abs