Borderou de evaluare (job #2979644)
Utilizator | Data | 15 februarie 2023 17:58:16 | |
---|---|---|---|
Problema | Concurs | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void solve()':
main.cpp:210:15: error: no match for 'operator<<' (operand types are 'OutParser' and 'const char [2]')
210 | fout << maxi << " " << p1 << " " << p2;
| ~~~~~~~~~~~~ ^~ ~~~
| | |
| OutParser const char [2]
main.cpp:91:16: note: candidate: 'OutParser& OutParser::operator<<(int)' (near match)
91 | OutParser& operator<<(int vu32)
| ^~~~~~~~
main.cpp:91:16: note: conversion of argument 1 would be ill-formed:
main.cpp:210:18: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
210 | fout << maxi << " " << p1 << " " << p2;
| ^~~
| |
| const char*
main.cpp:105:16: note: candidate: 'OutParser& OutParser::operator<<(char)' (near match)
105 | OutParser& operator<<(char ch)
| ^~~~~~~~
main.cpp:105:16: note: conversion of argument 1 would be ill-formed:
main.cpp:210:18: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
210 | fout << maxi << " " << p1 << " " << p2;
| ^~~
| |
| const char*
In file included from /usr/include/c++/10/regex:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:110,
from main.cpp:1:
/usr/include/c++/10/bits/regex.h:1647: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>&)'
1647 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
| ^~~~~~~~
/usr/include/c++/10/bits/regex.h:1647:5: note: template argument deduction/substitution failed:
main.cpp:210:18: note: 'OutParser' is not derived from 'std::basic_ostream<_CharT, _Traits>'
210 | fout << maxi << " " << p1 << " " << p2;
| ^~~
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/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
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:210:18: note: 'OutParser' is not derived from 'std::basic_ostream<_CharT, _Traits>'
210 | fout << maxi << " " << p1 << " " << p2;
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !