Borderou de evaluare (job #2884765)

Utilizator PetyAlexandru Peticaru Pety Data 4 aprilie 2022 20:23:51
Problema Vmin 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:92:9: error: no match for 'operator>>' (operand types are 'InParser' and 'double') 92 | fin >> f[i].a >> f[i].b; | ~~~ ^~ ~~~~~~ | | | | InParser double main.cpp:29:12: note: candidate: 'InParser& InParser::operator>>(int&)' (near match) 29 | InParser& operator >> (int &n) { | ^~~~~~~~ main.cpp:29:12: note: conversion of argument 1 would be ill-formed: main.cpp:92:17: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int' 92 | fin >> f[i].a >> f[i].b; | ~~~~~^ main.cpp:46:12: note: candidate: 'InParser& InParser::operator>>(long long int&)' (near match) 46 | InParser& operator >> (long long &n) { | ^~~~~~~~ main.cpp:46:12: note: conversion of argument 1 would be ill-formed: main.cpp:92:17: error: cannot bind non-const lvalue reference of type 'long long int&' to an rvalue of type 'long long int' 92 | fin >> f[i].a >> f[i].b; | ~~~~~^ In file included from /usr/include/c++/10/string:56, 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.tcc:1468:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)' 1468 | operator>>(basic_istream<_CharT, _Traits>& __in, | ^~~~~~~~ /usr/include/c++/10/bits/basic_string.tcc:1468:5: note: template argument deduction/substitution failed: main.cpp:92:17: note: 'InParser' is not derived from 'std::basic_istream<_CharT, _Traits>' 92 | fin >> f[i].a >> f[i].b; | ^ In file included from /usr/include/c++/10/istream:991, 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/istream.tcc:931:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)' 931 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) | ^~~~~~~~ /usr/include/c++/10/bits/istream.tcc:931:5: note: template argument deduction/substitution failed: main.cpp:92:17: note: 'InParser' is not derived from 'std::basic_istream<_CharT, _Traits>' 92 | fin >> f[i].a >> f[i].b; | ^ Non zero exit status: 1

Ceva nu functioneaza?