Borderou de evaluare (job #2748949)
Utilizator | Data | 4 mai 2021 13:09:02 | |
---|---|---|---|
Problema | Imagine | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void afis(int)':
main.cpp:21:17: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
if((1<<i+1)&x)
~^~
main.cpp:21:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if((1<<i+1)&x)
^
main.cpp: In function 'int main()':
main.cpp:53:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(s[0]!='(')
^
main.cpp:74:13: error: reference to 'next' is ambiguous
next[stiva[p+1]]=++k;
^~~~
main.cpp:15:34: note: candidates are: int next [2050005]
int n,sens,i,ord[20],stiva[maxn],next[maxn],aux,inv,p,k,fiu[20],x;
^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/string:40,
from /usr/include/c++/6/bitset:47,
from main.cpp:3:
/usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^~~~
main.cpp:110:24: error: reference to 'next' is ambiguous
fiu[1]=x,x=next[x];
^~~~
main.cpp:15:34: note: candidates are: int next [2050005]
int n,sens,i,ord[20],stiva[maxn],next[maxn],aux,inv,p,k,fiu[20],x;
^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/string:40,
from /usr/include/c++/6/bitset:47,
from main.cpp:3:
/usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^~~~
main.cpp:114:24: error: reference to 'next' is ambiguous
fiu[2]=x,x=next[x];
^~~~
main.cpp:15:34: note: candidates are: int next [2050005]
int n,sens,i,ord[20],stiva[maxn],next[maxn],aux,inv,p,k,fiu[20],x;
^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/string:40,
from /usr/include/c++/6/bitset:47,
from main.cpp:3:
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !