Problem choosingcandies
User yixin
Submission Time 2026-06-24 16:56:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

choosingcandies.cpp:12:9: error: stray ‘#’ in program
12 | for (in#include <iostream>
| ^
choosingcandies.cpp: In function ‘int main()’:
choosingcandies.cpp:12:7: error: ‘in’ was not declared in this scope; did you mean ‘n’?
12 | for (in#include <iostream>
| ^~
| n
choosingcandies.cpp:18:8: error: condition declares a function
18 | signed main() {
| ^~~~
choosingcandies.cpp:40:2: error: expected ‘;’ at end of input
40 | }
| ~^
| ;
choosingcandies.cpp:40:1: error: expected primary-expression at end of input
40 | }
| ^
choosingcandies.cpp:40:2: error: expected ‘)’ at end of input
40 | }
| ~^
| )
choosingcandies.cpp:12:6: note: to match this ‘(’
12 | for (in#include <iostream>
| ^
choosingcandies.cpp:40:1: error: expected statement at end of input
40 | }
| ^
choos