Problem | candles |
---|---|
User | asruby |
Submission Time | 2023-12-01 16:35:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
candles.cpp: In function ‘int main()’:
candles.cpp:14:4: error: ‘arr’ was not declared in this scope
14 | arr[i] = insertion;
| ^~~
candles.cpp:19:7: error: expected ‘)’ before ‘in’
19 | if (0 in candles == True)
| ~ ^~~
| )
candles.cpp:22:10: error: request for member ‘insert’ in ‘candles’, which is of non-class type ‘long long int [N]’
22 | candles.insert(0)
| ^~~~~~
candles.cpp:24:2: error: ‘sorted’ was not declared in this scope; did you mean ‘strtod’?
24 | sorted = sort(candles)
| ^~~~~~
| strtod
candles.cpp:24:23: error: no matching function for call to ‘sort(long long int [N])’
24 | sorted = sort(candles)
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from candles.cpp:1:
/usr/include/c++/9/bits/stl_algo.h: