Borderou de evaluare (job #2645846)

Utilizator saeed_odakSaeed Odak saeed_odak Data 29 august 2020 18:47:23
Problema Curatenie Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:153:60: error: no match for 'operator<<' (operand types are 'OutParser' and '<unresolved overloaded function type>') for(int i=1; i<=n; i++) cout << g[i][0] << " " << g[i][1] << endl; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ main.cpp:90:16: note: candidate: OutParser& OutParser::operator<<(int) OutParser& operator << (int vu32) { ^~~~~~~~ main.cpp:90:16: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int' main.cpp:100:16: note: candidate: OutParser& OutParser::operator<<(long long int) OutParser& operator << (long long vu64) { ^~~~~~~~ main.cpp:100:16: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int' main.cpp:110:16: note: candidate: OutParser& OutParser::operator<<(char) OutParser& operator << (char ch) { ^~~~~~~~ main.cpp:110:16: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'char' main.cpp:114:16: note: candidate: OutParser& OutParser::operator<<(const char*) OutParser& operator << (const char *ch) { ^~~~~~~~ main.cpp:114:16: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const char*' In file included from /usr/include/c++/6/regex:62:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:110, from main.cpp:1: /usr/include/c++/6/bits/regex.h:1483:5: note: candidate: template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::sub_match<_Bi_iter>&) operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os, ^~~~~~~~ /usr/include/c++/6/bits/regex.h:1483:5: note: template argument deduction/substitution failed: main.cpp:153:63: note: 'OutParser' is not derived from 'std::basic_ostream<_CharT, _Traits>' for(int i=1; i<=n; i++) cout << g[i][0] << " " << g[i][1] << endl; ^~~~ In file included from /usr/include/c++/6/random:51:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:108, from main.cpp:1: /usr/include/c++/6/bits/random.tcc:3160:5: note: candidate: template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::piecewise_linear_distribution<_RealType>&) operator<<(std::basic_ostream<_CharT, _Traits>& __os, ^~~~~~~~ /usr/include/c++/6/bits/random.tcc:3160:5: note: template argument deduction/substitution failed: main.cpp:153:63: note: 'OutParser' is not derived from 'std::basic_ostream<_CharT, _Traits>' for(int i=1; i<=n; i++) cout << g[i][0] << " " << g[i][1] << endl; ^~~~ In file included from /usr/include/c++/6/random:51:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:108, from main.cpp:1: /usr/include/c++/6/bits/random.tcc:2944:5: note: candidate: template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::piecewise_constant_distribution<_RealType>&) operator<<(std::basic_ostream<_CharT, _Traits>& __os, ^~~~~~~~ /usr/include/c++/6/bits/random.tcc:2944:5: note: template argument deduction/substitution failed: main.cpp:153:63: note: 'OutParser' is not derived from 'std::basic_ostream<_CharT, _Traits>' for(int i=1; i<=n; i++) cout << g[i][0] << " " << g[i][1] << endl; ^~~~ Non zero exit status: 1

Ceva nu functioneaza?