Borderou de evaluare (job #764339)

Utilizator avatar headcrab694 Turcanu Adrian headcrab694 IP ascuns
Problemă Antitir Compilator cpp-32
Rundă lasm_22_02_2024_clasa12 Status evaluat
Dată 22 feb. 2024 13:28:52 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:31:10: error: no match for 'operator<<' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'long long int') 31 | fout << totalPoints << endl; | ~~~~ ^~ ~~~~~~~~~~~ | | | | | long long int | std::ifstream {aka std::basic_ifstream<char>} main.cpp:31:10: note: candidate: 'operator<<(int, long long int)' (built-in) 31 | fout << totalPoints << endl; | ~~~~~^~~~~~~~~~~~~~ main.cpp:31:10: note: no known conversion for argument 1 from 'std::ifstream' {aka 'std::basic_ifstream<char>'} to 'int' In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/regex:68, from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/i686-pc-linux-gnu/bits/stdc++.h:181, from main.cpp:1: /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)' 1715 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os, | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/regex.h:1715:5: note: template argument deduction/substitution failed: main.cpp:31:13: note: 'std::ifstream' {aka 'std::basic_ifstream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 31 | fout << totalPoints << endl; | ^~~~~~~~~~~ In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/string:54, from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bitset:52, from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/i686-pc-linux-gnu/bits/stdc++.h:52: /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/basic_string.h:4032:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Alloc>&)' 4032 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/basic_string.h:4032:5: note: template argument deduction/substitution failed: main.cpp:31:13: note: 'std::ifstream' {aka 'std::basic_ifstream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 31 | fout << totalPoints << endl; | ^~~~~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bitset:1683:5: note: candidate: 'template<class _CharT, class _Traits, unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)' 1683 | operator<<(std::basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bitset:1683:5: note: template argument deduction/substitution failed: main.cpp:31:13: note: 'std::ifstream' {aka 'std::basic_ifstream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 31 | fout << totalPoints << endl; | ^~~~~~~~~~~ In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/ios_base.h:46, from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/streambuf:43, from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/streambuf_iterator.h:35, from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/iterator:66, from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/i686-pc-linux-gnu/bits/stdc++.h:54: /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)' 339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/system_error:339:5: note: template argument deduction/substitution failed: main.cpp:31:13: note: 'std::ifstream' {aka 'std::basic_ifstream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 31 | fout << totalPoints << endl; | ^~~~~~~~~~~