islands.cpp: In function 'll zip(int, int, int, int)':
islands.cpp:52:34: error: 'll zip(int, int, int, int)' redeclared as different kind of symbol
ll zip(int n, int a, int b, int c){
^
islands.cpp:34:13: note: previous declaration 'std::map<int, long long int> zip'
map<int,ll> zip;
^~~
islands.cpp:57:34: error: no match for call to '(std::map<int, long long int>) (int&, int&, int&, int&)'
mas=max(mas,zip(x.f,n,b,c)+x.s);
^
islands.cpp: In function 'll process(int)':
islands.cpp:101:5: error: 'zipp' was not declared in this scope
zipp[cyc[0]]=zip(cyc[0],-1,cyc[1],cyc.back());
^~~~
islands.cpp:101:5: note: suggested alternative: 'zip'
zipp[cyc[0]]=zip(cyc[0],-1,cyc[1],cyc.back());
^~~~
zip
islands.cpp:101:49: error: no match for call to '(std::map<int, long long int>) (__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type&, int, __gnu_cxx::__alloc_traits<std::allocator<int> >::value_type&, __gnu_cxx::__alloc_traits<std::allocator<int> >::value_type&)'
zipp[cyc[0]]=zip(cyc[0],-1,cyc[1],cyc.back());
^
islands.cpp:102:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<cyc.size()-1;i++)zipp[cyc[i]]=zip(cyc[i],-1,cyc[i-1],cyc[i+1]);
~^~~~~~~~~~~~~
islands.cpp:102:80: error: no match for call to '(std::map<int, long long int>) (__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type&, int, __gnu_cxx::__alloc_traits<std::allocator<int> >::value_type&, __gnu_cxx::__alloc_traits<std::allocator<int> >::value_type&)'
for(int i=1;i<cyc.size()-1;i++)zipp[cyc[i]]=zip(cyc[i],-1,cyc[i-1],cyc[i+1]);
^
islands.cpp:103:69: error: no match for call to '(std::map<int, long long int>) (__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type&, int, __gnu_cxx::__alloc_traits<std::allocator<int> >::value_type&, __gnu_cxx::__alloc_traits<std::allocator<int> >::value_type&)'
zipp[cyc.back()]=zip(cyc.back(),-1,cyc[cyc.size()-2],cyc.front());
^
islands.cpp:113:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<cyc.size()-1;i++)
~^~~~~~~~~~~~~