Borderou de evaluare (job #1874252)
Utilizator | Data | 9 februarie 2017 20:24:22 | |
---|---|---|---|
Problema | Zona | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void fill()’:
user.cpp:11:9: warning: unused variable ‘sol’ [-Wunused-variable]
int sol=0;
^
user.cpp: In function ‘int main()’:
user.cpp:46:15: error: no matching function for call to ‘fill(int&, int&)’
fill(c1,c2);
^
user.cpp:46:15: note: candidates are:
user.cpp:9:6: note: void fill()
void fill()
^
user.cpp:9:6: note: candidate expects 0 arguments, 2 provided
In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0,
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_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/include/c++/4.8/bits/stl_algobase.h:721:5: note: template argument deduction/substitution failed:
user.cpp:46:15: note: candidate expects 3 arguments, 2 provided
fill(c1,c2);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !