Borderou de evaluare (job #1369172)
Utilizator | Data | 2 martie 2015 22:21:58 | |
---|---|---|---|
Problema | Text3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void PrintWords(int)’:
user.cpp:42:16: error: reference to ‘prev’ is ambiguous
PrintWords(prev[loc]);
^
user.cpp:32:28: note: candidates are: int prev [20005]
int best[30],ans,dp[kMaxN],prev[kMaxN],last[kMaxN],bestpos;
^
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/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:5:
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:193:5: note: template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
prev(_BidirectionalIterator __x, typename
^
user.cpp: In function ‘void Solve()’:
user.cpp:56:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i<=words.size()-1; ++i)
^
user.cpp:61:9: error: reference to ‘prev’ is ambiguous
prev[i+1] = last[fs];
^
user.cpp:32:28: note: candidates are: int prev [20005]
int best[30],ans,dp[kMaxN],prev[kMaxN],last[kMaxN],bestpos;
^
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/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:5:
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:193:5: note: template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
prev(_BidirectionalIterator __x, typename
^
user.cpp:69:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(size_t i=0; i<=toint('z'); ++i)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !