Problem | collectmushrooms2 |
---|---|
User | FIips |
Submission Time | 2025-02-13 10:41:14 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
collectmushrooms2.cpp: In member function ‘std::pair<long long int, long long int> node::qry(long long int, long long int)’:
collectmushrooms2.cpp:45:32: error: operands to ?: have different types ‘std::pair<int, int>’ and ‘std::pair<long long int, long long int>’
45 | return (val == -1) ? make_pair(-1, -1) : make_pair(idx, val);
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
collectmushrooms2.cpp:45:32: note: and each type can be converted to the other