Borderou de evaluare (job #1518498)
Utilizator | Data | 5 noiembrie 2015 22:16:50 | |
---|---|---|---|
Problema | Rj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void lee(std::pair<int, int>, int (*)[105])’:
user.cpp:27:13: error: reference to ‘next’ is ambiguous
next. first=now.first+Ox[i];
^
user.cpp:10:33: note: candidates are: std::pair<int, int> next
pair<int,int> startr,startj,now,next;
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/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:28:13: error: reference to ‘next’ is ambiguous
next.second=now.second+Oy[i];
^
user.cpp:10:33: note: candidates are: std::pair<int, int> next
pair<int,int> startr,startj,now,next;
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/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:29:21: error: reference to ‘next’ is ambiguous
if(Mapp[next. first][next.second]==0 && verif(next)==1)
^
user.cpp:10:33: note: candidates are: std::pair<int, int> next
pair<int,int> startr,startj,now,next;
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/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:29:34: error: reference to ‘next’ is ambiguous
if(Mapp[next. first][next.second]==0 && verif(next)==1)
^
user.cpp:10:33: note: candidates are: std::pair<int, int> next
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !