Problem | swapsort |
---|---|
User | PlayVoltz |
Submission Time | 2023-05-11 16:39:16 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swapsort.cpp: In function ‘int main()’:
swapsort.cpp:20:13: error: missing template arguments before ‘[’ token
20 | temp = map[num];
| ^
swapsort.cpp:21:17: error: missing template arguments before ‘[’ token
21 | map[num] = map[num1];
| ^
swapsort.cpp:22:15: error: class template argument deduction failed:
22 | map[num1] = temp;
| ^~~~
swapsort.cpp:22:15: error: no matching function for call to ‘map(int&)’
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from swapsort.cpp:1:
/usr/include/c++/9/bits/stl_map.h:1416:5: note: candidate: ‘template<class _InputIterator, class _Compare, class _Allocator, class, class, class> std::map(_InputIterator, _InputIterator, _Compare, _Allocator)-> std::map<typename std::remove_const<typename std::iterator_traits<_Iterator>::