Borderou de evaluare (job #2925841)
Utilizator | Data | 16 octombrie 2022 11:20:34 | |
---|---|---|---|
Problema | Alpin | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void rezultat(punct, OutParser&)':
main.cpp:149:17: error: too few arguments to function 'void rezultat(punct, OutParser&)'
149 | rezultat(ant);
| ^
main.cpp:142:6: note: declared here
142 | void rezultat(punct p,OutParser &fout)
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:183:20: error: no match for 'operator<<' (operand types are 'OutParser' and '<unresolved overloaded function type>')
183 | fout << global << endl;
| ~~~~~~~~~~~~~~~^~~~~~~
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/istream:38,
from /usr/include/c++/10/fstream:38,
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:183:23: note: 'OutParser' is not derived from 'std::basic_ostream<_CharT, _Traits>'
183 | fout << global << 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/istream:38,
from /usr/include/c++/10/fstream:38,
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)
| ^~~~~~~~
/usr/include/c++/10/system_error:262:5: note: template argument deduction/substitution failed:
main.cpp:183:23: note: 'OutParser' is not derived from 'std::basic_ostream<_CharT, _Traits>'
183 | fout << global << endl;
| ^~~~
In file included from /usr/include/c++/10/istream:39,
from /usr/include/c++/10/fstream:38,
from main.cpp:1:
/usr/include/c++/10/ostream:506:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, _CharT)'
506 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/10/ostream:506:5: note: template argument deduction/substitution failed:
main.cpp:183:23: note: 'OutParser' is not derived from 'std::basic_ostream<_CharT, _Traits>'
183 | fout << global << endl;
| ^~~~
In file included from /usr/include/c++/10/istream:39,
from /usr/include/c++/10/fstream:38,
from main.cpp:1:
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !