Problem | intercastellar |
---|---|
User | PlayVoltz |
Submission Time | 2024-02-24 22:19:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
intercastellar.cpp: In function ‘int32_t main()’:
intercastellar.cpp:41:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::pair<long long int, long long int>’)
41 | cout<<*(upper_bound(vect.begin(), vect.end(), mp(a, LLONG_MAX/2))-1)<<"\n";
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | std::pair<long long int, long long int>
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/iostream:39,
from intercastellar.cpp:1:
/usr/include/c++/9/ostream:108:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _T