Problem | candles |
---|---|
User | asruby |
Submission Time | 2023-12-01 16:45:10 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
candles.cpp: In function ‘int main()’:
candles.cpp:17:7: error: expected ‘)’ before ‘in’
17 | if (0 in candles == True)
| ~ ^~~
| )
candles.cpp:21:24: error: request for member ‘begin’ in ‘candles’, which is of non-class type ‘long long int [N]’
21 | sorted = sort(candles.begin(),candles.end())
| ^~~~~
candles.cpp:21:40: error: request for member ‘end’ in ‘candles’, which is of non-class type ‘long long int [N]’
21 | sorted = sort(candles.begin(),candles.end())
| ^~~
candles.cpp:23:18: error: ‘i’ was not declared in this scope
23 | for (int i = 0; i < N; i++){
| ^