Borderou de evaluare (job #2686833)
Utilizator | Data | 19 decembrie 2020 13:32:02 | |
---|---|---|---|
Problema | Beyond the Wall | Status | done |
Runda | Winter Challenge 2020 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:61:23: error: no match for 'operator>>' (operand types are 'InParser' and 'int64_t {aka long int}')
int64_t a, b; cin >> a >> b;
~~~~^~~~
main.cpp:27:13: note: candidate: InParser& InParser::operator>>(int&) <near match>
InParser& operator >> (int &n) {
^~~~~~~~
main.cpp:27:13: note: conversion of argument 1 would be ill-formed:
main.cpp:61:26: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
int64_t a, b; cin >> a >> b;
^
In file included from /usr/include/c++/6/string:53:0,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from main.cpp:1:
/usr/include/c++/6/bits/basic_string.tcc:1437: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>&)
operator>>(basic_istream<_CharT, _Traits>& __in,
^~~~~~~~
/usr/include/c++/6/bits/basic_string.tcc:1437:5: note: template argument deduction/substitution failed:
main.cpp:61:26: note: 'InParser' is not derived from 'std::basic_istream<_CharT, _Traits>'
int64_t a, b; cin >> a >> b;
^
In file included from /usr/include/c++/6/istream:934:0,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from main.cpp:1:
/usr/include/c++/6/bits/istream.tcc:963:5: note: candidate: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)
operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
^~~~~~~~
/usr/include/c++/6/bits/istream.tcc:963:5: note: template argument deduction/substitution failed:
main.cpp:61:26: note: 'InParser' is not derived from 'std::basic_istream<_CharT, _Traits>'
int64_t a, b; cin >> a >> b;
^
In file included from /usr/include/c++/6/istream:934:0,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from main.cpp:1:
/usr/include/c++/6/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&)
operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !