Problem candies
User PerihelionfromAphelion
Submission Time 2026-04-28 20:34:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candies.cpp: In function ‘int main()’:
candies.cpp:35:19: error: redeclaration of ‘std::map<int, int> freq’
35 | map<int, int> freq; // number -> count (>=1 means present)
| ^~~~
candies.cpp:32:19: note: ‘std::map<int, int> freq’ previously declared here
32 | map<int, int> freq;
| ^~~~