Borderou de evaluare (job #1268811)
Utilizator | Data | 21 noiembrie 2014 15:30:41 | |
---|---|---|---|
Problema | Cerere | 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:26:9: error: reference to ‘next’ is ambiguous
next[i] = i;
^
user.cpp:7:16: note: candidates are: int next [100001]
int k[100001], next[100001], father[100001];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/vector:60,
from user.cpp:2:
/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:28:13: error: reference to ‘next’ is ambiguous
next[i] = father[next[i]];
^
user.cpp:7:16: note: candidates are: int next [100001]
int k[100001], next[100001], father[100001];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/vector:60,
from user.cpp:2:
/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:28:30: error: reference to ‘next’ is ambiguous
next[i] = father[next[i]];
^
user.cpp:7:16: note: candidates are: int next [100001]
int k[100001], next[100001], father[100001];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/vector:60,
from user.cpp:2:
/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:38:17: error: reference to ‘next’ is ambiguous
x = next[x];
^
user.cpp:7:16: note: candidates are: int next [100001]
int k[100001], next[100001], father[100001];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/vector:60,
from user.cpp:2:
/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:15:25: 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 !