Borderou de evaluare (job #2908054)
Utilizator | Data | 1 iunie 2022 11:26:32 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:208:26: error: no match for 'operator<<' (operand types are 'OutParser' and '<unresolved overloaded function type>')
208 | fout << parcurgere(x) << endl;
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
main.cpp:79:13: note: candidate: 'OutParser& OutParser::operator<<(int)'
79 | OutParser& operator << (int vu32) {
| ^~~~~~~~
main.cpp:79:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int'
79 | OutParser& operator << (int vu32) {
| ~~~~^~~~
main.cpp:90:13: note: candidate: 'OutParser& OutParser::operator<<(long long int)'
90 | OutParser& operator << (long long vu64) {
| ^~~~~~~~
main.cpp:90:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int'
90 | OutParser& operator << (long long vu64) {
| ~~~~~~~~~~^~~~
main.cpp:101:13: note: candidate: 'OutParser& OutParser::operator<<(char)'
101 | OutParser& operator << (char ch) {
| ^~~~~~~~
main.cpp:101:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'char'
101 | OutParser& operator << (char ch) {
| ~~~~~^~
main.cpp:105:13: note: candidate: 'OutParser& OutParser::operator<<(const char*)'
105 | OutParser& operator << (const char* ch) {
| ^~~~~~~~
main.cpp:105:38: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const char*'
105 | OutParser& operator << (const char* ch) {
| ~~~~~~~~~~~~^~
In file included from /usr/include/c++/10/string:55,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from main.cpp:1:
/usr/include/c++/10/bits/basic_string.h:6468:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)'
6468 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/10/bits/basic_string.h:6468:5: note: template argument deduction/substitution failed:
main.cpp:208:29: note: 'OutParser' is not derived from 'std::basic_ostream<_CharT, _Traits>'
208 | fout << parcurgere(x) << endl;
| ^~~~
In file included from /usr/include/c++/10/bits/ios_base.h:46,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from main.cpp:1:
/usr/include/c++/10/system_error:262:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::error_code&)'
262 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !