Problem 7up
User Yuzzll
Submission Time 2023-04-24 22:02:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

7up.cpp: In function ‘int main()’:
7up.cpp:11:11: error: class template argument deduction failed:
11 | map[i]="UP!";
| ^~~~~
7up.cpp:11:11: error: no matching function for call to ‘map(const char [4])’
In file included from /usr/include/c++/9/map:61,
from 7up.cpp:2:
/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/substitution failed:
7up.cpp:11:11: note: candidate expects 4 arguments,