Problem management
User PlayVoltz
Submission Time 2023-07-27 18:20:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

management.cpp: In function ‘int main()’:
management.cpp:9:8: error: redeclaration of ‘auto i’
9 | map[i]=0;
| ^
management.cpp:8:11: note: ‘int i’ previously declared here
8 | for (int i=1; i<=n; ++i){
| ^
management.cpp:9:10: error: class template argument deduction failed:
9 | map[i]=0;
| ^
management.cpp:9:10: 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 management.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::iter