crocodile.cpp: In function 'int find(int)':
crocodile.cpp:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
crocodile.cpp: In function 'int dfs(int)':
crocodile.cpp:38:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
crocodile.cpp: In function 'int travel_plan(int, int, int (*)[2], int*, int, int*)':
crocodile.cpp:64:3: error: reference to 'end' is ambiguous
end[p[i]]=1;
^~~
crocodile.cpp:4:92: note: candidates are: long long int end [100005]
long long int c[100005],t[20000005],road[2000005][3],map[100005],mi[100005][2],tag[100005],end[100005];
^~~
In file included from /usr/include/c++/7/string:51:0,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from crocodile.cpp:2:
/usr/include/c++/7/bits/range_access.h:107:37: note: template<class _Tp> const _Tp* std::end(const std::valarray<_Tp>&)
template<typename _Tp> const _Tp* end(const valarray<_Tp>&);
^~~
/usr/include/c++/7/bits/range_access.h:106:31: note: template<class _Tp> _Tp* std::end(std::valarray<_Tp>&)
template<typename _Tp> _Tp* end(valarray<_Tp>&);
^~~
/usr/include/c++/7/bits/range_access.h:97:5: note: template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::end(_Tp (&)[_Nm])
end(_Tp (&__arr)[_Nm])
^~~
/usr/include/c++/7/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&)
end(const _Container& __cont) -> decltype(__cont.end())
^~~
/usr/include/c++/7/bits/range_access.h:68:5: note: template<class _Container> decltype (__cont.end()) std::end(_Container&)
end(_Container& __cont) -> decltype(__cont.end())
^~~
In file included from /usr/include/c++/7/bits/range_access.h:36:0,
from /usr/include/c++/7/string:51,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from crocodile.cpp:2:
/usr/include/c++/7/initializer_list:99:5: note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
end(initializer_list<_Tp> __ils) noexcept
^~~
crocodile.cpp:69:6: warning: unused variable 'pp' [-Wunused-variable]
int pp=1,qq=1;
^~
crocodile.cpp:69:11: warning: unused variable 'qq' [-Wunused-variable]
int pp=1,qq=1;
^~