Problem choosingcandies
User aribah
Submission Time 2026-06-25 21:20:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

choosingcandies.cpp: In function ‘int main()’:
choosingcandies.cpp:10:4: error: expected initializer before ‘cin’
10 | cin >> a[i];
| ^~~
choosingcandies.cpp:11:7: error: ‘a’ was not declared in this scope
11 | if(a[i]+a[j]>= x) res++;
| ^