Problem | xmas |
---|---|
User | PlayVoltz |
Submission Time | 2023-04-30 13:27:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
xmas.cpp: In function ‘int main()’:
xmas.cpp:10:14: error: class template argument deduction failed:
10 | map[num] = i;
| ^
xmas.cpp:10:14: 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 xmas.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>::value_type::first_type>::type, typename std::iterator_traits<_Iterator>::value_type::second_type, _Compare, _Allocator>’
1416 | map(_InputIterator, _InputIterator,
| ^~~
/usr/include/c++/9/bits/stl_map.h:1416:5: note: template argument deduction/substit