Borderou de evaluare (job #691909)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Matroid | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 1 feb. 2023 10:42:10 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:190:14: error: ambiguous overload for 'operator<<' (operand types are 'OutParser' and 'std::vector<int>::size_type' {aka 'unsigned int'})
190 | fout << ctc[care].size() << '\n';
| ~~~~ ^~ ~~~~~~~~~~~~~~~~
| | |
| OutParser std::vector<int>::size_type {aka unsigned int}
main.cpp:98:16: note: candidate: 'OutParser& OutParser::operator<<(int)'
98 | OutParser& operator << (int vu32) {
| ^~~~~~~~
main.cpp:108:16: note: candidate: 'OutParser& OutParser::operator<<(long long int)'
108 | OutParser& operator << (long long vu64) {
| ^~~~~~~~
main.cpp:118:16: note: candidate: 'OutParser& OutParser::operator<<(char)'
118 | OutParser& operator << (char ch) {
| ^~~~~~~~
main.cpp:192:18: error: no match for 'operator<<' (operand types are 'OutParser' and 'std::vector<int>')
192 | fout << x << "\n";
| ~~~~ ^~ ~
| | |
| | std::vector<int>
| OutParser
main.cpp:98:16: note: candidate: 'OutParser& OutParser::operator<<(int)'
98 | OutParser& operator << (int vu32) {
| ^~~~~~~~
main.cpp:98:33: note: no known conversion for argument 1 from 'std::vector<int>' to 'int'
98 | OutParser& operator << (int vu32) {
| ~~~~^~~~
main.cpp:108:16: note: candidate: 'OutParser& OutParser::operator<<(long long int)'
108 | OutParser& operator << (long long vu64) {
| ^~~~~~~~
main.cpp:108:39: note: no known conversion for argument 1 from 'std::vector<int>' to 'long long int'
108 | OutParser& operator << (long long vu64) {
| ~~~~~~~~~~^~~~
main.cpp:118:16: note: candidate: 'OutParser& OutParser::operator<<(char)'
118 | OutParser& operator << (char ch) {
| ^~~~~~~~
main.cpp:118:34: note: no known conversion for argument 1 from 'std::vector<int>' to 'char'
118 | OutParser& operator << (char ch) {
| ~~~~~^~
main.cpp:122:16: note: candidate: 'OutParser& OutParser::operator<<(const char*)'
122 | OutParser& operator << (const char *ch) {
| ^~~~~~~~
main.cpp:122:41: note: no known conversion for argument 1 from 'std::vector<int>' to 'const char*'
122 | OutParser& operator << (const char *ch) {
| ~~~~~~~~~~~~^~
In file included from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/regex:63,
from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/i686-pc-linux-gnu/bits/stdc++.h:110,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/bits/regex.h:1671: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>&)'
1671 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,