Problem | funnyhat |
---|---|
User | wongyikai |
Submission Time | 2024-12-30 17:24:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
funnyhat.cpp: In function ‘int find_hat(int, std::vector<int>)’:
funnyhat.cpp:67:23: error: no matching function for call to ‘node::node(int, int&, ll [n])’
67 | root = new node(0,n,A);
| ^
funnyhat.cpp:11:5: note: candidate: ‘node::node(int, int, int*)’
11 | node (int _s, int _e, int A[] = NULL): s(_s), e(_e), mx({0,0}), l(NULL), r(NULL) {
| ^~~~
funnyhat.cpp:11:31: note: no known conversion for argument 3 from ‘ll [n]’ {aka ‘long long int [n]’} to ‘int*’
11 | node (int _s, int _e, int A[] = NULL): s(_s), e(_e), mx({0,0}), l(NULL), r(NULL) {
| ^
funnyhat.cpp:7:8: note: candidate: ‘constexpr node::node(const node&)’
7 | struct node {
| ^~~~
funnyhat.cpp:7:8: note: candidate expects 1 argument, 3 provided