Problem candies2
User Pan
Submission Time 2024-03-08 13:47:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candies2.cpp: In function ‘int main()’:
candies2.cpp:34:20: error: expected ‘,’ or ‘;’ before ‘ans2’
34 | ll n, x, ans1 = 0 ans2 = 0;
| ^~~~
candies2.cpp:36:14: error: ‘arr2’ was not declared in this scope; did you mean ‘arr1’?
36 | ll arr1[n]; arr2[n];
| ^~~~
| arr1
candies2.cpp:53:4: error: ‘ans2’ was not declared in this scope; did you mean ‘ans1’?
53 | ans2+=change;
| ^~~~
| ans1
candies2.cpp:56:18: error: ‘ans2’ was not declared in this scope; did you mean ‘ans1’?
56 | print(min(ans1, ans2), '\n');
| ^~~~
candies2.cpp:15:38: note: in definition of macro ‘print’
15 | #define print(x, y) printf("%lld%c", x, y);
| ^