Borderou de evaluare (job #1943759)
Utilizator | Data | 28 martie 2017 19:52:29 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:35: error: ‘value’ has not been declared
int binarys0(int left, int right, value)
^
user.cpp: In function ‘int binarys0(int, int, int)’:
user.cpp:14:9: error: ‘value’ was not declared in this scope
if (value==v[middle])
^
user.cpp:15:16: error: ‘m’ was not declared in this scope
return m;
^
user.cpp:21:41: error: too few arguments to function ‘int binarys0(int, int, int)’
binarys0(middle+1, right), value;
^
user.cpp:11:5: note: declared here
int binarys0(int left, int right, value)
^
user.cpp: In function ‘int binarys1(int, int, int)’:
user.cpp:29:13: error: ‘u’ was not declared in this scope
int n = u;
^
user.cpp:29:9: warning: unused variable ‘n’ [-Wunused-variable]
int n = u;
^
user.cpp: In function ‘int binarys2(int, int, int)’:
user.cpp:47:13: error: ‘u’ was not declared in this scope
int n = u;
^
user.cpp:47:9: warning: unused variable ‘n’ [-Wunused-variable]
int n = u;
^
user.cpp: In function ‘int main()’:
user.cpp:74:20: error: no match for ‘operator<<’ (operand types are ‘std::ifstream {aka std::basic_ifstream<char>}’ and ‘int’)
output << binarys0(0,n-1,b);
^
user.cpp:74:20: note: candidates are:
In file included from /usr/include/c++/4.8/string:52:0,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/c++/4.8/bits/basic_string.h:2753:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/usr/include/c++/4.8/bits/basic_string.h:2753:5: note: template argument deduction/substitution failed:
user.cpp:74:39: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’
output << binarys0(0,n-1,b);
^
In file included from /usr/include/c++/4.8/iostream:39:0,
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !