mat.cpp: In function ‘int main()’:
mat.cpp:50:30: warning: narrowing conversion of ‘1.0e+9’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
a[i][sz[i]]=mat{1e9,1e9,0,0};
^
mat.cpp:50:30: warning: narrowing conversion of ‘1.0e+9’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
mat.cpp:92:40: error: no matching function for call to ‘min(int&, mat&)’
if(min(a[0][k].r,a[1][opt[1][k][j]])>a[0][i].l)continue;
^
mat.cpp:92:40: note: candidates are:
In file included from /usr/include/c++/4.9/algorithm:61:0,
from mat.cpp:2:
/usr/include/c++/4.9/bits/stl_algobase.h:194:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
min(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.9/bits/stl_algobase.h:194:5: note: template argument deduction/substitution failed:
mat.cpp:92:40: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘mat’)
if(min(a[0][k].r,a[1][opt[1][k][j]])>a[0][i].l)continue;
^
In file included from /usr/include/c++/4.9/algorithm:61:0,
from mat.cpp:2:
/usr/include/c++/4.9/bits/stl_algobase.h:240:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.9/bits/stl_algobase.h:240:5: note: template argument deduction/substitution failed:
mat.cpp:92:40: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘mat’)
if(min(a[0][k].r,a[1][opt[1][k][j]])>a[0][i].l)continue;
^
In file included from /usr/include/c++/4.9/algorithm:62:0,
from mat.cpp:2:
/usr/include/c++/4.9/bits/stl_algo.h:3439:5: note: template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)
min(initializer_list<_Tp> __l)
^
/usr/include/c++/4.9/bits/stl_algo.h:3439:5: note: template argument deduction/substitution failed:
mat.cpp:92:40: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘int’
if(min(a[0][k].r,a[1][opt[1][k][j]])>a[0][i].l)continue;
^
In file included from /usr/include/c++/4.9/algorithm:62:0,
from mat.cpp:2:
/usr/include/c++/4.9/bits/stl_algo.h:3444:5: note: template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)
min(initializer_list<_Tp> __l, _Compare __comp)
^
/usr/include/c++/4.9/bits/stl_algo.h:3444:5: note: template argument deduction/substitution failed:
mat.cpp:92:40: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘int’
if(min(a[0][k].r,a[1][opt[1][k][j]])>a[0][i].l)continue;
^
mat.cpp:101:40: error: no matching function for call to ‘min(int&, mat&)’
if(min(a[1][k].r,a[0][opt[0][i][k]])>a[1][j].l)continue;
^
mat.cpp:101:40: note: candidates are:
In file included from /usr/include/c++/4.9/algorithm:61:0,
from mat.cpp:2:
/usr/include/c++/4.9/bits/stl_algobase.h:194:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
min(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.9/bits/stl_algobase.h:194:5: note: template argument deduction/substitution failed:
mat.cpp:101:40: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘mat’)
if(min(a[1][k].r,a[0][opt[0][i][k]])>a[1][j].l)continue;
^
In file included from /usr/include/c++/4.9/algorithm:61:0,
from mat.cpp:2:
/usr/include/c++/4.9/bits/stl_algobase.h:240:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.9/bits/stl_algobase.h:240:5: note: template argument deduction/substitution failed:
mat.cpp:101:40: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘mat’)
if(min(a[1][k].r,a[0][opt[0][i][k]])>a[1][j].l)continue;
^
In file included from /usr/include/c++/4.9/algorithm:62:0,
from mat.cpp:2:
/usr/include/c++/4.9/bits/stl_algo.h:3439:5: note: template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)
min(initializer_list<_Tp> __l)
^
/usr/include/c++/4.9/bits/stl_algo.h:3439:5: note: template argument deduction/substitution failed:
mat.cpp:101:40: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘int’
if(min(a[1][k].r,a[0][opt[0][i][k]])>a[1][j].l)continue;
^
In file included from /usr/include/c++/4.9/algorithm:62:0,
from mat.cpp:2:
/usr/include/c++/4.9/bits/stl_algo.h:3444:5: note: template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)
min(initializer_list<_Tp> __l, _Compare __comp)
^
/usr/include/c++/4.9/bits/stl_algo.h:3444:5: note: template argument deduction/substitution failed:
mat.cpp:101:40: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘int’
if(min(a[1][k].r,a[0][opt[0][i][k]])>a[1][j].l)continue;
^
mat.cpp:36:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&N,&W);
^
mat.cpp:44:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d%d",&p,&l,&r,&h,&k);
^