Borderou de evaluare (job #3237761)

Utilizator stefanrotaruRotaru Stefan-Florin stefanrotaru Data 12 iulie 2024 18:52:24
Problema Aiacupalindroame Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:3: warning: ignoring '#pragma GCC optimization' [-Wunknown-pragmas] 3 | #pragma GCC optimization ("O3") | main.cpp:4: warning: ignoring '#pragma GCC optimization' [-Wunknown-pragmas] 4 | #pragma GCC optimization ("unroll-loops") | main.cpp: In function 'int main()': main.cpp:160:7: error: no match for 'operator>>' (operand types are 'InParser' and 'char*') 160 | f >> (c + 2); | ~ ^~ ~~~~~~~ | | | | | char* | InParser main.cpp:30:19: note: candidate: 'InParser& InParser::operator>>(int&)' (near match) 30 | InParser& operator >> (int &n) { | ^~~~~~~~ main.cpp:30:19: note: conversion of argument 1 would be ill-formed: main.cpp:160:13: error: invalid conversion from 'char*' to 'int' [-fpermissive] 160 | f >> (c + 2); | ~~~^~~~ | | | char* main.cpp:160:13: error: cannot bind rvalue '(int)(((char*)(& c)) + 2)' to 'int&' main.cpp:47:19: note: candidate: 'InParser& InParser::operator>>(long long int&)' (near match) 47 | InParser& operator >> (long long &n) { | ^~~~~~~~ main.cpp:47:19: note: conversion of argument 1 would be ill-formed: main.cpp:160:13: error: invalid conversion from 'char*' to 'long long int' [-fpermissive] 160 | f >> (c + 2); | ~~~^~~~ | | | char* main.cpp:160:13: error: cannot bind rvalue '(long long int)(((char*)(& c)) + 2)' to 'long long int&' In file included from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:45, from main.cpp:1: /usr/include/c++/12.2.1/cstddef:128:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)' 128 | operator>>(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/12.2.1/cstddef:128:5: note: template argument deduction/substitution failed: main.cpp:160:5: note: cannot convert 'f' (type 'InParser') to type 'std::byte' 160 | f >> (c + 2); | ^ In file included from /usr/include/c++/12.2.1/string:54, from /usr/include/c++/12.2.1/bits/locale_classes.h:40, from /usr/include/c++/12.2.1/bits/ios_base.h:41, from /usr/include/c++/12.2.1/ios:42, from /usr/include/c++/12.2.1/istream:38, from /usr/include/c++/12.2.1/sstream:38, from /usr/include/c++/12.2.1/complex:45, from /usr/include/c++/12.2.1/ccomplex:39, Non zero exit status: 1

Ceva nu functioneaza?