Borderou de evaluare (job #1133893)
Utilizator | Data | 5 martie 2014 19:43:45 | |
---|---|---|---|
Problema | Sediu | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void DFS(int)’:
user.cpp:30:17: error: reference to ‘max’ is ambiguous
if (Dp[node] > max && Dp[node] != n) max = Dp[node];
^
user.cpp:17:16: note: candidates are: int max
int n,Dp[MaxN],max;
^
In file included from /usr/local/include/c++/4.8.0/list:60:0,
from user.cpp:10:
/usr/local/include/c++/4.8.0/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/local/include/c++/4.8.0/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:30:39: error: reference to ‘max’ is ambiguous
if (Dp[node] > max && Dp[node] != n) max = Dp[node];
^
user.cpp:17:16: note: candidates are: int max
int n,Dp[MaxN],max;
^
In file included from /usr/local/include/c++/4.8.0/list:60:0,
from user.cpp:10:
/usr/local/include/c++/4.8.0/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/local/include/c++/4.8.0/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: In function ‘int main()’:
user.cpp:53:3: error: reference to ‘max’ is ambiguous
max = -1;
^
user.cpp:17:16: note: candidates are: int max
int n,Dp[MaxN],max;
^
In file included from /usr/local/include/c++/4.8.0/list:60:0,
from user.cpp:10:
/usr/local/include/c++/4.8.0/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/local/include/c++/4.8.0/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:55:7: error: reference to ‘max’ is ambiguous
if (max < min)
^
user.cpp:17:16: note: candidates are: int max
int n,Dp[MaxN],max;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !