Borderou de evaluare (job #752286)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Numere Apropiate (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 19 dec. 2023 20:12:35 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void solve()':
main.cpp:114:13: error: no match for 'operator>>' (operand types are 'InParser' and 'char')
114 | fin >> c >> t;
| ~~~ ^~ ~
| | |
| | char
| InParser
main.cpp:51:15: note: candidate: 'InParser& InParser::operator>>(long long int&)' (near match)
51 | InParser& operator >> (long long &n) {
| ^~~~~~~~
main.cpp:51:15: note: conversion of argument 1 would be ill-formed:
main.cpp:114:16: error: cannot bind non-const lvalue reference of type 'long long int&' to a value of type 'char'
114 | fin >> c >> t;
| ^
main.cpp:34:15: note: candidate: 'InParser& InParser::operator>>(int&)' (near match)
34 | InParser& operator >> (int &n) {
| ^~~~~~~~
main.cpp:34:15: note: conversion of argument 1 would be ill-formed:
main.cpp:114:16: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'char'
114 | fin >> c >> t;
| ^
In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/string:55,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bitset:52,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/i686-pc-linux-gnu/bits/stdc++.h:52,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/basic_string.tcc:821:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Alloc>&)'
821 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/basic_string.tcc:821:5: note: template argument deduction/substitution failed:
main.cpp:114:16: note: 'InParser' is not derived from 'std::basic_istream<_CharT, _Traits>'
114 | fin >> c >> t;
| ^
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bitset:1593:5: note: candidate: 'template<class _CharT, class _Traits, unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)'
1593 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x)
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bitset:1593:5: note: template argument deduction/substitution failed:
main.cpp:114:16: note: 'InParser' is not derived from 'std::basic_istream<_CharT, _Traits>'
114 | fin >> c >> t;
| ^
In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:1106,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/sstream:40,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/complex:45,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ccomplex:39,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/i686-pc-linux-gnu/bits/stdc++.h:127:
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/istream.tcc:975:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
975 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/istream.tcc:975:5: note: template argument deduction/substitution failed:
main.cpp:114:16: note: 'InParser' is not derived from 'std::basic_istream<_CharT, _Traits>'
114 | fin >> c >> t;