Mikroschema

Taškai: 0

Compile: FAIL

lmio_2004_3e2_mikroschema.cpp: In function ‘int main()’: lmio_2004_3e2_mikroschema.cpp:33:12: error: no match for ‘operator[]’ (operand types are ‘std::map<std::__cxx11::basic_string<char>, std::vector<std::__cxx11::basic_string<char> > >’ and ‘int’) Map[Poros[x].b].push_back(Poros[x].a); ^ In file included from /usr/include/c++/5/map:61:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:80, from lmio_2004_3e2_mikroschema.cpp:1: /usr/include/c++/5/bits/stl_map.h:474:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string<char>; _Tp = std::vector<std::__cxx11::basic_string<char> >; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, std::vector<std::__cxx11::basic_string<char> > > >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = std::vector<std::__cxx11::basic_string<char> >; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = std::__cxx11::basic_string<char>] operator[](const key_type& __k) ^ /usr/include/c++/5/bits/stl_map.h:474:7: note: no known conversion for argument 1 from ‘int’ to ‘const key_type& {aka const std::__cxx11::basic_string<char>&}’ /usr/include/c++/5/bits/stl_map.h:494:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = std::__cxx11::basic_string<char>; _Tp = std::vector<std::__cxx11::basic_string<char> >; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, std::vector<std::__cxx11::basic_string<char> > > >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = std::vector<std::__cxx11::basic_string<char> >; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = std::__cxx11::basic_string<char>] operator[](key_type&& __k) ^ /usr/include/c++/5/bits/stl_map.h:494:7: note: no known conversion for argument 1 from ‘int’ to ‘std::map<std::__cxx11::basic_string<char>, std::vector<std::__cxx11::basic_string<char> > >::key_type&& {aka std::__cxx11::basic_string<char>&&}’

nr.resulttimemessage