Borderou de evaluare (job #1702225)
Utilizator | Data | 14 mai 2016 19:42:12 | |
---|---|---|---|
Problema | Ciclu Eulerian | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void add(int, int)’:
user.cpp:39:3: error: reference to ‘next’ is ambiguous
next[M]=lst[x];
^
user.cpp:34:33: note: candidates are: int next [1000020]
int vf[2*MAXM], M, lst[MAXN+1], next[2*MAXM], fol[MAXM];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/list:60,
from user.cpp:3:
/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: In function ‘void bfs(int)’:
user.cpp:53:9: error: reference to ‘next’ is ambiguous
p=next[p];
^
user.cpp:34:33: note: candidates are: int next [1000020]
int vf[2*MAXM], M, lst[MAXN+1], next[2*MAXM], fol[MAXM];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/list:60,
from user.cpp:3:
/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: In function ‘void euler(int)’:
user.cpp:65:21: error: reference to ‘next’ is ambiguous
lst[stiv[st]]=next[lst[stiv[st]]];
^
user.cpp:34:33: note: candidates are: int next [1000020]
int vf[2*MAXM], M, lst[MAXN+1], next[2*MAXM], fol[MAXM];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/list:60,
from user.cpp:3:
/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:68:21: error: reference to ‘next’ is ambiguous
lst[stiv[st]]=next[lst[stiv[st]]];
^
user.cpp:34:33: note: candidates are: int next [1000020]
int vf[2*MAXM], M, lst[MAXN+1], next[2*MAXM], fol[MAXM];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/list:60,
from user.cpp:3:
/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
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !