Problem candles
User asruby
Submission Time 2023-12-01 16:34:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candles.cpp: In function ‘int main()’:
candles.cpp:14:12: error: request for member ‘insert’ in ‘candles’, which is of non-class type ‘long long int [N]’
14 | candles.insert(insertion);
| ^~~~~~
candles.cpp:19:14: error: request for member ‘count’ in ‘candles’, which is of non-class type ‘long long int [N]’
19 | if (candles.count(0) != 0)
| ^~~~~
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/i