Borderou de evaluare (job #1217167)
Utilizator | Data | 6 august 2014 19:46:30 | |
---|---|---|---|
Problema | Telecab | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int dist(long long int, long long int, long long int, long long int)’:
user.cpp:21:63: warning: unused variable ‘vl’ [-Wunused-variable]
long long dst = (x1 - x2)*(x1 - x2) + (y1 - y2)*(y1 - y2),vl = 0;
^
user.cpp: In function ‘void solveA()’:
user.cpp:51:13: error: reference to ‘next’ is ambiguous
next[i] = i+1;
^
user.cpp:12:13: note: candidates are: int next [100005]
int h[Lmax],next[Lmax];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/algorithm:61,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
user.cpp:53:13: error: reference to ‘next’ is ambiguous
next[i] = S.top();
^
user.cpp:12:13: note: candidates are: int next [100005]
int h[Lmax],next[Lmax];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/algorithm:61,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
user.cpp:62:33: error: reference to ‘next’ is ambiguous
totalA += dist(pz,h[pz],next[pz],h[next[pz]]);
^
user.cpp:12:13: note: candidates are: int next [100005]
int h[Lmax],next[Lmax];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/algorithm:61,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
user.cpp:62:44: error: reference to ‘next’ is ambiguous
totalA += dist(pz,h[pz],next[pz],h[next[pz]]);
^
user.cpp:12:13: note: candidates are: int next [100005]
int h[Lmax],next[Lmax];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/algorithm:61,
from user.cpp:2:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !