| Problem | choosingcandies |
|---|---|
| User | dharshanmb |
| Submission Time | 2026-06-24 16:28:27 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
choosingcandies.cpp: In function ‘int main()’:
choosingcandies.cpp:11:24: error: ‘n’ was not declared in this scope
11 | for(int j =i + 1; j<=n; j++) {
| ^
choosingcandies.cpp:14:15: error: ‘k’ was not declared in this scope
14 | if( sum >= k) ways += 1;
| ^
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:10: error: ‘ways’ was not declared in this scope; did you mean ‘way’?
17 | cout << ways;
| ^~~~
| way