Problem swords
User boomphcoding
Submission Time 2024-01-29 16:23:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:18:21: error: cannot convert ‘std::map<int, int>::iterator’ {aka ‘std::_Rb_tree_iterator<std::pair<const int, int> >’} to ‘void*’
18 | qsort(swords.begin(),swords.end());
| ~~~~~~~~~~~~^~
| |
| std::map<int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, int> >}
In file included from /usr/include/c++/9/cstdlib:75,
from /usr/include/c++/9/ext/string_conversions.h:41,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream: