Borderou de evaluare (job #962211)
Utilizator | Data | 14 iunie 2013 00:21:52 | |
---|---|---|---|
Problema | Regiuni2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool intersection(std::vector<std::pair<double, double> >&, const std::pair<double, double>&, const std::pair<double, double>&)’:
user.cpp:41:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int i = 0 ; i < poligon.size() ; ++i ){
^
user.cpp:44:48: error: reference to ‘next’ is ambiguous
int d1 = det(p1,p2,x),d2 = det(p1,p2,poligon[next[i]]);
^
user.cpp:13:5: note: candidates are: int next [31]
int next[maxdim],prev[maxdim];
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:66:0,
from /usr/local/include/c++/4.8.0/vector:60,
from user.cpp:2:
/usr/local/include/c++/4.8.0/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:47:27: error: reference to ‘prev’ is ambiguous
if ( det(p1,p2,poligon[prev[i]]) * det(p1,p2,poligon[next[i]]) < 0 ){
^
user.cpp:13:18: note: candidates are: int prev [31]
int next[maxdim],prev[maxdim];
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:66:0,
from /usr/local/include/c++/4.8.0/vector:60,
from user.cpp:2:
/usr/local/include/c++/4.8.0/bits/stl_iterator_base_funcs.h:193:5: note: template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
prev(_BidirectionalIterator __x, typename
^
user.cpp:47:57: error: reference to ‘next’ is ambiguous
if ( det(p1,p2,poligon[prev[i]]) * det(p1,p2,poligon[next[i]]) < 0 ){
^
user.cpp:13:5: note: candidates are: int next [31]
int next[maxdim],prev[maxdim];
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:66:0,
from /usr/local/include/c++/4.8.0/vector:60,
from user.cpp:2:
/usr/local/include/c++/4.8.0/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: In function ‘void get_points(std::vector<std::pair<double, double> >&, const std::pair<double, double>&, const std::pair<double, double>&, std::vector<std::pair<double, double> >&, const int&)’:
user.cpp:60:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int i = 0 ; i < poligon.size() ; ++i ){
^
user.cpp:61:57: error: reference to ‘next’ is ambiguous
int d1 = det(p1,p2,poligon[i]),d2 = det(p1,p2,poligon[next[i]]);
^
user.cpp:13:5: note: candidates are: int next [31]
int next[maxdim],prev[maxdim];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !