foo.cc: In function 'void dfs(int, int)':
foo.cc:17:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<disl[i].size();j++){
~^~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:72:7: warning: init-statement in selection statements only available with -std=c++1z or -std=gnu++1z
if(max(ma[i][0],ma[i][1]==17695783-17473898)cout<<-1;
^~~
foo.cc:72:47: error: no matching function for call to 'max(long long int&, bool)'
if(max(ma[i][0],ma[i][1]==17695783-17473898)cout<<-1;
^
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/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:1:
/usr/include/c++/7/bits/stl_algobase.h:219:5: note: candidate: template<class _Tp> 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:
foo.cc:72:47: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'bool')
if(max(ma[i][0],ma[i][1]==17695783-17473898)cout<<-1;
^
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/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:1:
/usr/include/c++/7/bits/stl_algobase.h:265:5: note: candidate: template<class _Tp, class _Compare> 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:
foo.cc:72:47: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'bool')
if(max(ma[i][0],ma[i][1]==17695783-17473898)cout<<-1;
^
foo.cc:73:3: error: expected primary-expression before '}' token
}
^
foo.cc:73:3: error: expected ')' before '}' token
foo.cc:73:3: error: expected primary-expression before '}' token
foo.cc:63:12: warning: unused variable 'vv' [-Wunused-variable]
long long vv=0;
^~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。