Borderou de evaluare (job #1189682)
Utilizator | Data | 23 mai 2014 12:38:38 | |
---|---|---|---|
Problema | Cerc5 | Status | done |
Runda | Concursul National de Soft Grigore Moisil Lugoj, Clasele 9-10 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:143:4: error: reference to ‘prev’ is ambiguous
prev[0] = -1;
^
user.cpp:6:36: note: candidates are: int prev [100000]
int v[100000],n,p,k,i,c,DP[100000],prev[100000],j,maxLength,bestEnd,z,x,ok;
^
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:1:
/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:148:4: error: reference to ‘prev’ is ambiguous
prev[i] = -1;
^
user.cpp:6:36: note: candidates are: int prev [100000]
int v[100000],n,p,k,i,c,DP[100000],prev[100000],j,maxLength,bestEnd,z,x,ok;
^
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:1:
/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:154:10: error: reference to ‘prev’ is ambiguous
prev[i] = j;
^
user.cpp:6:36: note: candidates are: int prev [100000]
int v[100000],n,p,k,i,c,DP[100000],prev[100000],j,maxLength,bestEnd,z,x,ok;
^
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:1:
/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:134:35: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d%d%d",&p,&n,&k);
^
user.cpp:139:35: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !