Borderou de evaluare (job #1933807)
Utilizator | Data | 20 martie 2017 22:35:35 | |
---|---|---|---|
Problema | Search | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void Calc(char*, int (*)[200])’:
user.cpp:16:48: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for (int j = i; j >= 0 && !next[j][s[i]]; j--)
^
user.cpp:17:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
next[j][s[i]] = i;
^
user.cpp: In function ‘int main()’:
user.cpp:26:17: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
f>>s[i] + 1;
^
user.cpp:27:20: error: reference to ‘next’ is ambiguous
Calc(s[i], next[i]);
^
user.cpp:11:5: note: candidates are: int next [105][5005][200]
int next[NMAX][SMAX][200], n, m;
^
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: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:34:21: error: reference to ‘next’ is ambiguous
POZ[0][i] = next[i][0][c];
^
user.cpp:11:5: note: candidates are: int next [105][5005][200]
int next[NMAX][SMAX][200], n, m;
^
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: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:54:34: error: reference to ‘next’ is ambiguous
POZ[sol.size()][i] = next[i][p][c];
^
user.cpp:11:5: note: candidates are: int next [105][5005][200]
int next[NMAX][SMAX][200], n, m;
^
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,
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !