Problem choosingcandies
User dharshanmb
Submission Time 2026-06-24 16:26:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

choosingcandies.cpp: In function ‘int main()’:
choosingcandies.cpp:6:17: error: ‘N’ was not declared in this scope
6 | int n,k; cin >>N>>k;
| ^
choosingcandies.cpp:14:18: error: ‘ways’ was not declared in this scope; did you mean ‘way’?
14 | if( sum >= k) ways += 1;
| ^~~~
| way
choosingcandies.cpp:17:8: error: ‘ways’ was not declared in this scope; did you mean ‘way’?
17 | cout<<ways;
| ^~~~
| way