Problem | coinjourney |
---|---|
User | Kiameimon |
Submission Time | 2024-01-15 15:51:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
coinjourney.cpp: In function ‘int main()’:
coinjourney.cpp:26:63: error: request for member ‘second’ in ‘std::lower_bound<std::pair<long long int, long long int>*, std::pair<long long int, long long int> >(((std::pair<long long int, long long int>*)(& sum)), (((std::pair<long long int, long long int>*)(& sum)) + ((((sizetype)n) + 1) * 16)), std::make_pair<long long int&, long long int>(q, (-9223372036854775807 - 1)))’, which is of pointer type ‘std::pair<long long int, long long int>*’ (maybe you meant to use ‘->’ ?)
26 | cout << *lower_bound(sum, sum+n+1, make_pair(q, LLONG_MIN)).second << " ";
| ^~~~~~