islands.cpp: In function 'bool find_cyc(int, int)':
islands.cpp:37:5: error: 'k' was not declared in this scope
k[n]=1;
^
islands.cpp: In function 'll zip(int, int, int, int)':
islands.cpp:51: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:33:13: note: previous declaration 'std::map<int, long long int> zip'
map<int,ll> zip;
^~~
islands.cpp:52:5: error: 'k' was not declared in this scope
k[n]=1;
^
islands.cpp:56: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 dfs(int, int)':
islands.cpp:63:5: error: 'k' was not declared in this scope
k[n]=1;
^
islands.cpp: In function 'll dfs2(int, int, int)':
islands.cpp:80:5: error: 'k' was not declared in this scope
k[n]=1;
^
islands.cpp: In function 'll process(int)':
islands.cpp:100:5: error: 'zipp' was not declared in this scope
zipp[cyc[0]]=zip(cyc[0],-1,cyc[1],cyc.back());
^~~~
islands.cpp:100:5: note: suggested alternative: 'zip'
zipp[cyc[0]]=zip(cyc[0],-1,cyc[1],cyc.back());
^~~~
zip
islands.cpp:100: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:101: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:101: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:102: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:112:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<cyc.size()-1;i++)
~^~~~~~~~~~~~~
islands.cpp: In function 'int main()':
islands.cpp:151:9: error: 'k' was not declared in this scope
if(!k[i])ans+=process(i);
^