Borderou de evaluare (job #1447842)
Utilizator | Data | 5 iunie 2015 16:39:34 | |
---|---|---|---|
Problema | Biti | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void back(int, int)’:
user.cpp:30:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j=0;j<g[nod].size();j++)
^
user.cpp: In function ‘int main()’:
user.cpp:42:17: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
if (i>>(n-1)&1==1) next=curent*2-(1<<n)+1; else
^
user.cpp:42:24: error: reference to ‘next’ is ambiguous
if (i>>(n-1)&1==1) next=curent*2-(1<<n)+1; else
^
user.cpp:20:26: note: candidates are: int next
int n,i,sol[nmax],curent,next,x,y,fr[nmax],maxx;
^
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/ostream:38,
from /usr/include/c++/4.8/iostream:39,
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:43:9: error: reference to ‘next’ is ambiguous
next=curent*2+1;
^
user.cpp:20:26: note: candidates are: int next
int n,i,sol[nmax],curent,next,x,y,fr[nmax],maxx;
^
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/ostream:38,
from /usr/include/c++/4.8/iostream:39,
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:44:20: error: reference to ‘next’ is ambiguous
g[i].push_back(next);
^
user.cpp:20:26: note: candidates are: int next
int n,i,sol[nmax],curent,next,x,y,fr[nmax],maxx;
^
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/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:2:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !