Borderou de evaluare (job #2240305)
Utilizator | Data | 12 septembrie 2018 23:06:57 | |
---|---|---|---|
Problema | Palindrom3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:65:29: error: reference to ‘prev’ is ambiguous
prev[i][newr] = r;
^~~~
user.cpp:8:63: note: candidates are: int prev [1000001][21]
int p[10], a[10][10], k, bigp[10], p10[MAXN], dp[MAXN][MAXK], prev[MAXN][MAXK];
^~~~
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/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from user.cpp:1:
/usr/include/c++/6/bits/stl_iterator_base_funcs.h:217:5: note: template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
prev(_BidirectionalIterator __x, typename
^~~~
user.cpp:77:13: error: reference to ‘prev’ is ambiguous
r = prev[i][r];
^~~~
user.cpp:8:63: note: candidates are: int prev [1000001][21]
int p[10], a[10][10], k, bigp[10], p10[MAXN], dp[MAXN][MAXK], prev[MAXN][MAXK];
^~~~
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/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from user.cpp:1:
/usr/include/c++/6/bits/stl_iterator_base_funcs.h:217:5: note: template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
prev(_BidirectionalIterator __x, typename
^~~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !