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

Compile Error

candies.cpp: In function ‘int main()’:
candies.cpp:9:7: error: ‘i’ was not declared in this scope
9 | for (i = 0; i < N; i++) {
| ^
candies.cpp:11:18: error: invalid operands of types ‘const char [6]’ and ‘int’ to binary ‘operator&’
11 | scanf ("%d %d" &type, &x);
| ~~~~~~~ ^~~~~
| | |
| | int
| const char [6]
candies.cpp:22:24: error: expected primary-expression before ‘)’ token
22 | if (freq[x] == 0;) {
| ^