Borderou de evaluare (job #976608)
Utilizator | Data | 23 iulie 2013 14:57:28 | |
---|---|---|---|
Problema | Insule | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void fill(char, int, int)’:
user.cpp:15:36: error: no matching function for call to ‘fill(std::array<std::array<char, 100u>, 100u>&, int&, int&, const char&, int, const int&)’
fill( ocean, n, m, key, i - 1, j );
^
user.cpp:15:36: note: candidates are:
user.cpp:10:6: note: void fill(char, int, int)
void fill( const char key, const int i, const int j )
^
user.cpp:10:6: note: candidate expects 3 arguments, 6 provided
In file included from /usr/local/include/c++/4.8.0/bits/char_traits.h:39:0,
from /usr/local/include/c++/4.8.0/ios:40,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/bits/stl_algobase.h:721:5: note: template<class _ForwardIterator, class _Tp> void std::fill(_ForwardIterator, _ForwardIterator, const _Tp&)
fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value)
^
/usr/local/include/c++/4.8.0/bits/stl_algobase.h:721:5: note: template argument deduction/substitution failed:
user.cpp:15:36: note: deduced conflicting types for parameter ‘_ForwardIterator’ (‘std::array<std::array<char, 100u>, 100u>’ and ‘int’)
fill( ocean, n, m, key, i - 1, j );
^
user.cpp:17:36: error: no matching function for call to ‘fill(std::array<std::array<char, 100u>, 100u>&, int&, int&, const char&, const int&, int)’
fill( ocean, n, m, key, i, j - 1 );
^
user.cpp:17:36: note: candidates are:
user.cpp:10:6: note: void fill(char, int, int)
void fill( const char key, const int i, const int j )
^
user.cpp:10:6: note: candidate expects 3 arguments, 6 provided
In file included from /usr/local/include/c++/4.8.0/bits/char_traits.h:39:0,
from /usr/local/include/c++/4.8.0/ios:40,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/bits/stl_algobase.h:721:5: note: template<class _ForwardIterator, class _Tp> void std::fill(_ForwardIterator, _ForwardIterator, const _Tp&)
fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value)
^
/usr/local/include/c++/4.8.0/bits/stl_algobase.h:721:5: note: template argument deduction/substitution failed:
user.cpp:17:36: note: deduced conflicting types for parameter ‘_ForwardIterator’ (‘std::array<std::array<char, 100u>, 100u>’ and ‘int’)
fill( ocean, n, m, key, i, j - 1 );
^
user.cpp:19:36: error: no matching function for call to ‘fill(std::array<std::array<char, 100u>, 100u>&, int&, int&, const char&, int, const int&)’
fill( ocean, n, m, key, i + 1, j );
^
user.cpp:19:36: note: candidates are:
user.cpp:10:6: note: void fill(char, int, int)
void fill( const char key, const int i, const int j )
^
user.cpp:10:6: note: candidate expects 3 arguments, 6 provided
In file included from /usr/local/include/c++/4.8.0/bits/char_traits.h:39:0,
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !