Problem buyingcandy
User jamestan
Submission Time 2023-12-24 18:15:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

buyingcandy.cpp: In function ‘int main()’:
buyingcandy.cpp:27:5: error: expected ‘,’ or ‘;’ before ‘for’
27 | for (int i=0;i<n;i++){
| ^~~
buyingcandy.cpp:27:18: error: ‘i’ was not declared in this scope
27 | for (int i=0;i<n;i++){
| ^