Problem sort
User AaravRastogi
Submission Time 2025-12-03 14:38:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘int main()’:
sort.cpp:17:36: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::pair<long long int, std::__cxx11::basic_string<char> >’)
17 | for (int j = 0; j < n; ++j){ cout << m[j] << ' ';}
| ~~~~ ^~ ~~~~
| | |
| | std::pair<long long int, std::__cxx11::basic_string<char> >
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from sort.cpp:1:
/usr/incl