Žaidimas 8

Taškai: 0

Compile: FAIL

zaidimas.cpp: In function ‘int main()’: zaidimas.cpp:36: error: invalid types ‘int[int]’ for array subscript zaidimas.cpp:36: error: invalid types ‘int[int]’ for array subscript zaidimas.cpp:48: error: invalid types ‘int[int]’ for array subscript zaidimas.cpp:48: error: invalid types ‘int[int]’ for array subscript zaidimas.cpp:60: error: invalid types ‘int[int]’ for array subscript zaidimas.cpp:60: error: invalid types ‘int[int]’ for array subscript zaidimas.cpp:71: error: invalid types ‘int[int]’ for array subscript zaidimas.cpp:71: error: invalid types ‘int[int]’ for array subscript zaidimas.cpp:91: error: no matching function for call to ‘std::map<int, int, std::less<int>, std::allocator<std::pair<const int, int> > >::count(std::string&)’ /usr/include/c++/4.4/bits/stl_map.h:685: note: candidates are: typename std::_Rb_tree<_Key, std::pair<const _Key, _Tp>, std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, typename _Alloc::rebind<std::pair<const _Key, _Tp> >::other>::size_type std::map<_Key, _Tp, _Compare, _Alloc>::count(const _Key&) const [with _Key = int, _Tp = int, _Compare = std::less<int>, _Alloc = std::allocator<std::pair<const int, int> >] zaidimas.cpp:91: error: no match for ‘operator[]’ in ‘ilgiai[a]’ /usr/include/c++/4.4/bits/stl_map.h:442: note: candidates are: _Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = int, _Tp = int, _Compare = std::less<int>, _Alloc = std::allocator<std::pair<const int, int> >]

nr.resulttimemessage