| Problem | choosingcandies |
|---|---|
| User | Zaydluq |
| Submission Time | 2026-06-24 16:03:29 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
choosingcandies.cpp: In function ‘int main()’:
choosingcandies.cpp:12:17: error: invalid types ‘long long int[long long int]’ for array subscript
12 | int sum = a[i] + a[j];
| ^
choosingcandies.cpp:12:24: error: invalid types ‘long long int[long long int]’ for array subscript
12 | int sum = a[i] + a[j];
| ^
choosingcandies.cpp:13:33: error: expected ‘)’ before ‘;’ token
13 | if (sum >= i; i != j; sum++) {
| ~ ^
| )
choosingcandies.cpp:13:40: error: expected ‘;’ before ‘)’ token
13 | if (sum >= i; i != j; sum++) {
| ^
| ;
choosingcandies.cpp:17:1: error: expected ‘}’ at end of input
17 | }
| ^
choosingcandies.cpp:5:15: note: to match this ‘{’
5 | signed main()