Problem | collectmushrooms2 |
---|---|
User | Henries |
Submission Time | 2024-12-07 14:22:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
collectmushrooms2.cpp: In constructor ‘node::node(int, int)’:
collectmushrooms2.cpp:14:27: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘long long int’ in assignment
14 | val = {v[S],-S};
| ^
collectmushrooms2.cpp: In member function ‘std::pair<int, int> node::qry(int, int)’:
collectmushrooms2.cpp:24:37: error: could not convert ‘-1’ from ‘int’ to ‘std::pair<int, int>’
24 | if (l > E || r < S) return -1; // No overlap
| ^
| |
| int
collectmushrooms2.cpp:25:38: error: could not convert ‘((node*)this)->node::val’ from ‘long long int’ to ‘std::pair<int, int>’
25 | if (l <= S && r >= E) return val; // Total overlap
| ^~~
|