lozinke.cpp: In function 'int main()':
lozinke.cpp:25:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<v[i].size();j++)
~^~~~~~~~~~~~
lozinke.cpp:28:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int z=j;z<v[i].size();z++)
~^~~~~~~~~~~~
lozinke.cpp:31:21: error: no match for 'operator[]' (operand types are 'std::map<std::pair<std::__cxx11::basic_string<char>, int>, int>' and 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}')
if(m[s]==0)
^
In file included from /usr/include/c++/7/map:61:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:81,
from lozinke.cpp:1:
/usr/include/c++/7/bits/stl_map.h:484:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::pair<std::__cxx11::basic_string<char>, int>; _Tp = int; _Compare = std::less<std::pair<std::__cxx11::basic_string<char>, int> >; _Alloc = std::allocator<std::pair<const std::pair<std::__cxx11::basic_string<char>, int>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = std::pair<std::__cxx11::basic_string<char>, int>]
operator[](const key_type& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:484:7: note: no known conversion for argument 1 from 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' to 'const key_type& {aka const std::pair<std::__cxx11::basic_string<char>, int>&}'
/usr/include/c++/7/bits/stl_map.h:504: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::pair<std::__cxx11::basic_string<char>, int>; _Tp = int; _Compare = std::less<std::pair<std::__cxx11::basic_string<char>, int> >; _Alloc = std::allocator<std::pair<const std::pair<std::__cxx11::basic_string<char>, int>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = std::pair<std::__cxx11::basic_string<char>, int>]
operator[](key_type&& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:504:7: note: no known conversion for argument 1 from 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' to 'std::map<std::pair<std::__cxx11::basic_string<char>, int>, int>::key_type&& {aka std::pair<std::__cxx11::basic_string<char>, int>&&}'
lozinke.cpp:34:22: error: no match for 'operator[]' (operand types are 'std::map<std::pair<std::__cxx11::basic_string<char>, int>, int>' and 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}')
m[s]++;
^
In file included from /usr/include/c++/7/map:61:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:81,
from lozinke.cpp:1:
/usr/include/c++/7/bits/stl_map.h:484:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::pair<std::__cxx11::basic_string<char>, int>; _Tp = int; _Compare = std::less<std::pair<std::__cxx11::basic_string<char>, int> >; _Alloc = std::allocator<std::pair<const std::pair<std::__cxx11::basic_string<char>, int>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = std::pair<std::__cxx11::basic_string<char>, int>]
operator[](const key_type& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:484:7: note: no known conversion for argument 1 from 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' to 'const key_type& {aka const std::pair<std::__cxx11::basic_string<char>, int>&}'
/usr/include/c++/7/bits/stl_map.h:504: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::pair<std::__cxx11::basic_string<char>, int>; _Tp = int; _Compare = std::less<std::pair<std::__cxx11::basic_string<char>, int> >; _Alloc = std::allocator<std::pair<const std::pair<std::__cxx11::basic_string<char>, int>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = std::pair<std::__cxx11::basic_string<char>, int>]
operator[](key_type&& __k)
^~~~~~~~
/usr/include/c++/7/bits/stl_map.h:504:7: note: no known conversion for argument 1 from 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' to 'std::map<std::pair<std::__cxx11::basic_string<char>, int>, int>::key_type&& {aka std::pair<std::__cxx11::basic_string<char>, int>&&}'