construction.cpp: In function 'int main()':
construction.cpp:68:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<ixcp.size();i++) xcp[ixcp[i]]=i;
~^~~~~~~~~~~~
construction.cpp:69:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<iycp.size();i++) ycp[iycp[i]]=i;
~^~~~~~~~~~~~
construction.cpp:77:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(;ixcp[pt]<=v[i].x&&pt<ixcp.size();pt++){
~~^~~~~~~~~~~~
construction.cpp:78:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<ex[pt].size();j++) {
~^~~~~~~~~~~~~~
construction.cpp:96:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(;iycp[pt]<=v[i].y&&pt<iycp.size();pt++){
~~^~~~~~~~~~~~
construction.cpp:97:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<ey[pt].size();j++) {
~^~~~~~~~~~~~~~
construction.cpp:112:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<conn[i].size();j++) {
~^~~~~~~~~~~~~~~
construction.cpp:121:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<mst.size();i++){
~^~~~~~~~~~~
construction.cpp:128:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(n-val.size()>=t2){
~~~~~~~~~~~~^~~~
construction.cpp:133:47: error: no matching function for call to 'max(__gnu_cxx::__normal_iterator<int*, std::vector<int> >::difference_type, int)'
int idx=max(it-val2.begin()-1,n-t2);
^
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/istream:38,
from /usr/include/c++/7/sstream:38,
from /usr/include/c++/7/complex:45,
from /usr/include/c++/7/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
from construction.cpp:1:
/usr/include/c++/7/bits/stl_algobase.h:219:5: note: candidate: template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^~~
/usr/include/c++/7/bits/stl_algobase.h:219:5: note: template argument deduction/substitution failed:
construction.cpp:133:47: note: deduced conflicting types for parameter 'const _Tp' ('long int' and 'int')
int idx=max(it-val2.begin()-1,n-t2);
^
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/istream:38,
from /usr/include/c++/7/sstream:38,
from /usr/include/c++/7/complex:45,
from /usr/include/c++/7/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
from construction.cpp:1:
/usr/include/c++/7/bits/stl_algobase.h:265:5: note: candidate: template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^~~
/usr/include/c++/7/bits/stl_algobase.h:265:5: note: template argument deduction/substitution failed:
construction.cpp:133:47: note: deduced conflicting types for parameter 'const _Tp' ('long int' and 'int')
int idx=max(it-val2.begin()-1,n-t2);
^
In file included from /usr/include/c++/7/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:65,
from construction.cpp:1:
/usr/include/c++/7/bits/stl_algo.h:3462:5: note: candidate: template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)
max(initializer_list<_Tp> __l)
^~~
/usr/include/c++/7/bits/stl_algo.h:3462:5: note: template argument deduction/substitution failed:
construction.cpp:133:47: note: mismatched types 'std::initializer_list<_Tp>' and 'long int'
int idx=max(it-val2.begin()-1,n-t2);
^
In file included from /usr/include/c++/7/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:65,
from construction.cpp:1:
/usr/include/c++/7/bits/stl_algo.h:3468:5: note: candidate: template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)
max(initializer_list<_Tp> __l, _Compare __comp)
^~~
/usr/include/c++/7/bits/stl_algo.h:3468:5: note: template argument deduction/substitution failed:
construction.cpp:133:47: note: mismatched types 'std::initializer_list<_Tp>' and 'long int'
int idx=max(it-val2.begin()-1,n-t2);
^
construction.cpp:57:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&n,&m,&c);
~~~~~^~~~~~~~~~~~~~~~~~~
construction.cpp:58:55: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=0;i<n;i++){scanf("%d%d",&v[i].x,&v[i].y),v[i].idx=i;}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
construction.cpp:59:89: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=0;i<m;i++){scanf("%d%d%d%d",&h[i].x1,&h[i].y1,&h[i].x2,&h[i].y2),h[i].x2++,h[i].y2++;}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
construction.cpp:127:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&t1,&t2);
~~~~~^~~~~~~~~~~~~~~~