Borderou de evaluare (job #2450535)
Utilizator | Data | 23 august 2019 16:48:41 | |
---|---|---|---|
Problema | Secventa 5 | Status | done |
Runda | Teme Pregatire ACM Unibuc 2014, Anul I | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'll seq(int)':
main.cpp:110:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(st <= n)
~~~^~~~
main.cpp:112:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(dr <= n && countt <= mx)
~~~^~~~
main.cpp: In function 'int main()':
main.cpp:133:7: error: no match for 'operator>>' (operand types are 'InParser' and 'unsigned int')
f >> n >> L >> R;
~~^~~~
main.cpp:64:12: note: candidate: InParser& InParser::operator>>(int&) <near match>
InParser& operator >> (int &n) {
^~~~~~~~
main.cpp:64:12: note: conversion of argument 1 would be ill-formed:
main.cpp:133:10: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
f >> n >> L >> R;
^
main.cpp:81:12: note: candidate: InParser& InParser::operator>>(long long int&) <near match>
InParser& operator >> (long long &n) {
^~~~~~~~
main.cpp:81:12: note: conversion of argument 1 would be ill-formed:
main.cpp:133:10: error: invalid initialization of non-const reference of type 'long long int&' from an rvalue of type 'long long int'
f >> n >> L >> R;
^
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:133:10: note: 'InParser' is not derived from 'std::basic_istream<_CharT, _Traits>'
f >> n >> L >> R;
^
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)
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !