Problem candies
User Dynonychus
Submission Time 2024-01-29 21:45:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candies.cpp: In function ‘int main()’:
candies.cpp:12:8: error: expected primary-expression before ‘%’ token
12 | scanf(%d, &n);
| ^
candies.cpp:12:9: error: ‘d’ was not declared in this scope
12 | scanf(%d, &n);
| ^
candies.cpp:12:13: error: ‘n’ was not declared in this scope
12 | scanf(%d, &n);
| ^
candies.cpp:19:9: error: expected primary-expression before ‘%’ token
19 | scanf(%d, &a);
| ^
candies.cpp:19:14: error: ‘a’ was not declared in this scope
19 | scanf(%d, &a);
| ^