Borderou de evaluare (job #609923)

Utilizator avatar andreifilimon Popescu Filimon Andrei Cosmin andreifilimon IP ascuns
Problemă Baza ( clasele 7-8 ) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 12 oct. 2021 15:31:37 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:26:15: error: invalid digit "9" in octal constant 26 | cout<<091031; | ^~~~~~ main.cpp:31:15: error: invalid digit "9" in octal constant 31 | cout<<057819; | ^~~~~~ main.cpp:42:15: error: invalid digit "9" in octal constant 42 | cout<<0981274; | ^~~~~~~ main.cpp:49:15: error: invalid digit "8" in octal constant 49 | cout<<01618567; | ^~~~~~~~ main.cpp:67:15: error: invalid digit "9" in octal constant 67 | cout<<01563379; | ^~~~~~~~ main.cpp:80:15: error: invalid digit "8" in octal constant 80 | cout<<0811237; | ^~~~~~~ main.cpp:87:15: error: invalid digit "8" in octal constant 87 | cout<<06804854; | ^~~~~~~~ main.cpp:90:15: error: invalid digit "8" in octal constant 90 | cout<<08652310; | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:21:26: error: no match for 'operator<<' (operand types are 'std::ofstream' {aka 'std::basic_ofstream<char>'} and 'std::ofstream' {aka 'std::basic_ofstream<char>'}) 21 | cout<<310625;cout<< | ~~~~^~ | | | basic_ofstream<[...]> 22 | cout<<886126; | ~~~~ | | | basic_ofstream<[...]> main.cpp:21:26: note: candidate: 'operator<<(int, int)' (built-in) 21 | cout<<310625;cout<< | ~~~~^~ 22 | cout<<886126; | ~~~~ main.cpp:21:26: note: no known conversion for argument 2 from 'std::ofstream' {aka 'std::basic_ofstream<char>'} to 'int' In file included from /usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/istream:39, from /usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/fstream:38, from main.cpp:1: /usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/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/10.3.0/include/g++-v10/ostream:108:36: note: no known conversion for argument 1 from 'std::ofstream' {aka 'std::basic_ofstream<char>'} 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/10.3.0/include/g++-v10/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>]'