Borderou de evaluare (job #689143)

Utilizator avatar StefanDutu Dutu Stefan StefanDutu IP ascuns
Problemă Concurs3 (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 21 ian. 2023 12:57:11 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:15:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 15 | if(b%10==0) | ^ main.cpp:31:12: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 31 | fout<<S<<min; | ~~~~~~~^~~~~ In file included from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/iostream:39, 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' 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 '<unresolved overloaded function type>' to 'long int' 166 | operator<<(long __n) | ~~~~~^~~ /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ostream:170:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]' 170 | operator<<(unsigned long __n) | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ostream:170:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int' 170 | operator<<(unsigned long __n) | ~~~~~~~~~~~~~~^~~ /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]' 174 | operator<<(bool __n) | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ostream:174:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool' 174 | operator<<(bool __n) | ~~~~~^~~ In file included from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ostream:829, from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/iostream:39, from main.cpp:1: /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/bits/ostream.tcc:91:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]' 91 | basic_ostream<_CharT, _Traits>::