Problem candyshop
User benji9736
Submission Time 2025-12-17 15:50:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
candyshop.cpp: In function ‘int main()’:
candyshop.cpp:35:9: error: ‘x’ was not declared in this scope
35 | cin>>x;
| ^
candyshop.cpp:43:1: error: expected ‘}’ at end of input
43 | }
| ^
candyshop.cpp:21:11: note: to match this ‘{’
21 | int main(){
| ^