Borderou de evaluare (job #692567)

Utilizator avatar mh_7 Horvath Matei mh_7 IP ascuns
Problemă Latin Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 3 feb. 2023 17:19:51 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:51:15: error: no matching function for call to 'BigInt::BigInt(int)' 51 | BigInt p(1); | ^ main.cpp:3:7: note: candidate: 'constexpr BigInt::BigInt()' 3 | class BigInt{ | ^~~~~~ main.cpp:3:7: note: candidate expects 0 arguments, 1 provided main.cpp:3:7: note: candidate: 'constexpr BigInt::BigInt(const BigInt&)' main.cpp:3:7: note: no known conversion for argument 1 from 'int' to 'const BigInt&' main.cpp:3:7: note: candidate: 'constexpr BigInt::BigInt(BigInt&&)' main.cpp:3:7: note: no known conversion for argument 1 from 'int' to 'BigInt&&' main.cpp:54:10: error: no match for 'operator*=' (operand types are 'BigInt' and 'int') 54 | p*=(v[i]+1); | ~^~~~~~~~~~ main.cpp:56:9: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'BigInt') 56 | cout<<p; | ~~~~^~~ | | | | | BigInt | std::ostream {aka std::basic_ostream<char>} In file included from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/istream:39, from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/sstream:38, from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/complex:45, from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ccomplex:39, from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/i686-pc-linux-gnu/bits/stdc++.h:54, from main.cpp:1: /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ostream:108:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]' 108 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ostream:108:36: note: no known conversion for argument 1 from 'BigInt' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'} 108 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ostream:117:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ios_type& (*)(std::basic_ostream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>; std::basic_ostream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]' 117 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ostream:117:32: note: no known conversion for argument 1 from 'BigInt' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} 117 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ostream:127:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]' 127 | operator<<(ios_base& (*__pf) (ios_base&)) | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ostream:127:30: note: no known conversion for argument 1 from 'BigInt' to 'std::ios_base& (*)(std::ios_base&)' 127 | operator<<(ios_base& (*__pf) (ios_base&)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ostream:166:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]' 166 | operator<<(long __n) | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ostream:166:23: note: no known conversion for argument 1 from 'BigInt' to 'long int' 166 | operator<<(long __n)