Borderou de evaluare (job #1429052)
Utilizator | Data | 5 mai 2015 16:37:53 | |
---|---|---|---|
Problema | Kinetic | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:67:13: error: reference to ‘max’ is ambiguous
for(max=0,r=step;r;r>>=1)
^
user.cpp:4:16: note: candidates are: int max
int aux,step,r,max,min,i,n,m,t,j,k,l,a[500],b[500],x[2000001],y[200001],z[200001],w[200001],c[500],d1[500],e[2500001],g[250001],p[200001],s[200001],o[250001],q[250001],poz[501],u[200001],h[501];
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_algo.h:4259:5: note: template<class _Tp, class _Compare> _Tp std::max(std::initializer_list<_Tp>, _Compare)
max(initializer_list<_Tp> __l, _Compare __comp)
^
/usr/include/c++/4.8/bits/stl_algo.h:4254:5: note: template<class _Tp> _Tp std::max(std::initializer_list<_Tp>)
max(initializer_list<_Tp> __l)
^
In file included from /usr/include/c++/4.8/algorithm:61:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: 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++/4.8/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
user.cpp:68:12: error: reference to ‘max’ is ambiguous
if(max+r<=n&&a[h[max+r]]+z[i]*b[h[max+r]]<=y[w[i]])
^
user.cpp:4:16: note: candidates are: int max
int aux,step,r,max,min,i,n,m,t,j,k,l,a[500],b[500],x[2000001],y[200001],z[200001],w[200001],c[500],d1[500],e[2500001],g[250001],p[200001],s[200001],o[250001],q[250001],poz[501],u[200001],h[501];
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_algo.h:4259:5: note: template<class _Tp, class _Compare> _Tp std::max(std::initializer_list<_Tp>, _Compare)
max(initializer_list<_Tp> __l, _Compare __comp)
^
/usr/include/c++/4.8/bits/stl_algo.h:4254:5: note: template<class _Tp> _Tp std::max(std::initializer_list<_Tp>)
max(initializer_list<_Tp> __l)
^
In file included from /usr/include/c++/4.8/algorithm:61:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: 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++/4.8/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
user.cpp:68:26: error: reference to ‘max’ is ambiguous
if(max+r<=n&&a[h[max+r]]+z[i]*b[h[max+r]]<=y[w[i]])
^
user.cpp:4:16: note: candidates are: int max
int aux,step,r,max,min,i,n,m,t,j,k,l,a[500],b[500],x[2000001],y[200001],z[200001],w[200001],c[500],d1[500],e[2500001],g[250001],p[200001],s[200001],o[250001],q[250001],poz[501],u[200001],h[501];
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !