Problem choosingcandies
User chatdanai
Submission Time 2025-11-17 14:00:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

choosingcandies.cpp: In function ‘int main()’:
choosingcandies.cpp:9:17: error: ‘N’ was not declared in this scope
9 | int candies[N];
| ^
choosingcandies.cpp:11:12: error: expected ‘;’ before ‘candies’
11 | cin candies[i];
| ^~~~~~~~
| ;
choosingcandies.cpp:16:17: error: ‘candies’ was not declared in this scope
16 | if (candies[i]+candies[j]>=k){
| ^~~~~~~