Borderou de evaluare (job #1680842)
Utilizator | Data | 9 aprilie 2016 10:07:34 | |
---|---|---|---|
Problema | Findmin | Status | done |
Runda | Grigore Moisil 2016 Clasa a 9-a | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int find_next(int)’:
user.cpp:56:14: error: reference to ‘next’ is ambiguous
return ( next[ x ] = find_next( next[ x ] ) );
^
user.cpp:13:5: note: candidates are: int next [1000002]
int next[ nmax + 2 ];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/algorithm:61,
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:56:37: error: reference to ‘next’ is ambiguous
return ( next[ x ] = find_next( next[ x ] ) );
^
user.cpp:13:5: note: candidates are: int next [1000002]
int next[ nmax + 2 ];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/algorithm:61,
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: In function ‘int main()’:
user.cpp:65:9: error: reference to ‘next’ is ambiguous
next[ i ] = i + 1;
^
user.cpp:13:5: note: candidates are: int next [1000002]
int next[ nmax + 2 ];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/algorithm:61,
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: In member function ‘char InputReader::nextpos()’:
user.cpp:46:44: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread( buff, Size, 1, fin );
^
user.cpp: In function ‘int find_next(int)’:
user.cpp:57:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !