probe.cpp: In function 'int check(int, const int*)':
probe.cpp:12:12: error: reference to 'end' is ambiguous
if(end[i]>=idx-1){
^~~
probe.cpp:6:27: note: candidates are: int end [2000]
int num[2000],start[2000],end[2000];
^~~
In file included from /usr/include/c++/7/utility:76:0,
from /usr/include/c++/7/algorithm:60,
from probe.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
^~~
probe.cpp:13:35: error: reference to 'end' is ambiguous
for(int x=start[i];x<=end[i];x++){
^~~
probe.cpp:6:27: note: candidates are: int end [2000]
int num[2000],start[2000],end[2000];
^~~
In file included from /usr/include/c++/7/utility:76:0,
from /usr/include/c++/7/algorithm:60,
from probe.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
^~~
probe.cpp: In function 'int main()':
probe.cpp:36:34: error: reference to 'end' is ambiguous
scanf("%d %d %d",start+i,end+i,num+i);
^~~
probe.cpp:6:27: note: candidates are: int end [2000]
int num[2000],start[2000],end[2000];
^~~
In file included from /usr/include/c++/7/utility:76:0,
from /usr/include/c++/7/algorithm:60,
from probe.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
^~~
probe.cpp:40:62: error: reference to 'end' is ambiguous
for(int i=0;i<n;i++)intv[i]=make_pair(make_pair(start[i],end[i]),num[i]);
^~~
probe.cpp:6:27: note: candidates are: int end [2000]
int num[2000],start[2000],end[2000];
^~~
In file included from /usr/include/c++/7/utility:76:0,
from /usr/include/c++/7/algorithm:60,
from probe.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
^~~
probe.cpp:44:9: error: reference to 'end' is ambiguous
end[i]=intv[i].first.second;
^~~
probe.cpp:6:27: note: candidates are: int end [2000]
int num[2000],start[2000],end[2000];
^~~
In file included from /usr/include/c++/7/utility:76:0,
from /usr/include/c++/7/algorithm:60,
from probe.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
^~~
probe.cpp:49:34: error: reference to 'end' is ambiguous
if(start[i]==start[i-1]&&end[i]==end[i-1]){
^~~
probe.cpp:6:27: note: candidates are: int end [2000]
int num[2000],start[2000],end[2000];
^~~
In file included from /usr/include/c++/7/utility:76:0,
from /usr/include/c++/7/algorithm:60,
from probe.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
^~~
probe.cpp:49:42: error: reference to 'end' is ambiguous
if(start[i]==start[i-1]&&end[i]==end[i-1]){
^~~
probe.cpp:6:27: note: candidates are: int end [2000]
int num[2000],start[2000],end[2000];
^~~
In file included from /usr/include/c++/7/utility:76:0,
from /usr/include/c++/7/algorithm:60,
from probe.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
^~~
probe.cpp:51:24: error: reference to 'end' is ambiguous
start[i-1]=end[i-1]=-1;
^~~
probe.cpp:6:27: note: candidates are: int end [2000]
int num[2000],start[2000],end[2000];
^~~
In file included from /usr/include/c++/7/utility:76:0,
from /usr/include/c++/7/algorithm:60,
from probe.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
^~~
probe.cpp:60:24: error: reference to 'end' is ambiguous
etmp[itmp]=end[i];
^~~
probe.cpp:6:27: note: candidates are: int end [2000]
int num[2000],start[2000],end[2000];
^~~
In file included from /usr/include/c++/7/utility:76:0,
from /usr/include/c++/7/algorithm:60,
from probe.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
^~~
probe.cpp:67:13: error: reference to 'end' is ambiguous
end[i]=etmp[i];
^~~
probe.cpp:6:27: note: candidates are: int end [2000]
int num[2000],start[2000],end[2000];
^~~
In file included from /usr/include/c++/7/utility:76:0,
from /usr/include/c++/7/algorithm:60,
from probe.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
^~~
probe.cpp:75:38: error: reference to 'end' is ambiguous
if(start[i]<=start[j] && end[j]<=end[i]){
^~~
probe.cpp:6:27: note: candidates are: int end [2000]
int num[2000],start[2000],end[2000];
^~~
In file included from /usr/include/c++/7/utility:76:0,
from /usr/include/c++/7/algorithm:60,
from probe.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
^~~
probe.cpp:75:46: error: reference to 'end' is ambiguous
if(start[i]<=start[j] && end[j]<=end[i]){
^~~
probe.cpp:6:27: note: candidates are: int end [2000]
int num[2000],start[2000],end[2000];
^~~
In file included from /usr/include/c++/7/utility:76:0,
from /usr/include/c++/7/algorithm:60,
from probe.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
^~~
probe.cpp:76:52: error: reference to 'end' is ambiguous
if(num[i]-num[j]>start[j]-start[i]+end[i]-end[j]){
^~~
probe.cpp:6:27: note: candidates are: int end [2000]
int num[2000],start[2000],end[2000];
^~~
In file included from /usr/include/c++/7/utility:76:0,
from /usr/include/c++/7/algorithm:60,
from probe.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
^~~
probe.cpp:76:59: error: reference to 'end' is ambiguous
if(num[i]-num[j]>start[j]-start[i]+end[i]-end[j]){
^~~
probe.cpp:6:27: note: candidates are: int end [2000]
int num[2000],start[2000],end[2000];
^~~
In file included from /usr/include/c++/7/utility:76:0,
from /usr/include/c++/7/algorithm:60,
from probe.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
^~~
probe.cpp:34:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&k,&n);
~~~~~^~~~~~~~~~~~~~~