Borderou de evaluare (job #1688798)
Utilizator | Data | 13 aprilie 2016 18:55:35 | |
---|---|---|---|
Problema | Cuplaj maxim in graf bipartit | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool cupl(int)’:
user.cpp:16:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<v[nod].size();i++)
^
user.cpp:19:13: error: reference to ‘next’ is ambiguous
next[nod]=v[nod][i];
^
user.cpp:7:17: note: candidates are: int next [10001]
int prec[10001],next[10001];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/vector:60,
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:23:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<v[nod].size();i++)
^
user.cpp:26:13: error: reference to ‘next’ is ambiguous
next[nod]=v[nod][i];
^
user.cpp:7:17: note: candidates are: int next [10001]
int prec[10001],next[10001];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/vector:60,
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: In function ‘int main()’:
user.cpp:46:16: error: reference to ‘next’ is ambiguous
if(next[i]==0)
^
user.cpp:7:17: note: candidates are: int next [10001]
int prec[10001],next[10001];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/vector:60,
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:12: error: reference to ‘next’ is ambiguous
if(next[i]!=0)
^
user.cpp:7:17: note: candidates are: int next [10001]
int prec[10001],next[10001];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !