Problem candies
User Henries
Submission Time 2024-12-06 11:18:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candies.cpp: In function ‘int main()’:
candies.cpp:66:6: error: expected ‘;’ before ‘if’
66 | x--
| ^
| ;
67 | if (type == 1){
| ~~
candies.cpp:70:3: error: ‘else’ without a previous ‘if’
70 | else{
| ^~~~