Borderou de evaluare (job #2247798)

Utilizator ClockworkOrangeUAIC Banu Rusu Cornei ClockworkOrange Data 29 septembrie 2018 09:54:53
Problema Fences Status done
Runda Arhiva ICPC Compilator cpp
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:14:4: error: no match for ‘operator<<’ (operand types are ‘std::ifstream {aka std::basic_ifstream<char>}’ and ‘int’) g << n; ~~^~~~ user.cpp:14:4: note: candidate: operator<<(int, int) <built-in> user.cpp:14:4: note: no known conversion for argument 1 from ‘std::ifstream {aka std::basic_ifstream<char>}’ to ‘int’ In file included from /usr/include/c++/6/regex:62:0, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:110, from user.cpp:1: /usr/include/c++/6/bits/regex.h:1483: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 std::__cxx11::sub_match<_Bi_iter>&) operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os, ^~~~~~~~ /usr/include/c++/6/bits/regex.h:1483:5: note: template argument deduction/substitution failed: user.cpp:14:7: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’ g << n; ^ In file included from /usr/include/c++/6/random:51:0, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:108, from user.cpp:1: /usr/include/c++/6/bits/random.tcc:3160:5: note: candidate: template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::piecewise_linear_distribution<_RealType>&) operator<<(std::basic_ostream<_CharT, _Traits>& __os, ^~~~~~~~ /usr/include/c++/6/bits/random.tcc:3160:5: note: template argument deduction/substitution failed: user.cpp:14:7: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’ g << n; ^ In file included from /usr/include/c++/6/random:51:0, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:108, from user.cpp:1: /usr/include/c++/6/bits/random.tcc:2944:5: note: candidate: template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::piecewise_constant_distribution<_RealType>&) operator<<(std::basic_ostream<_CharT, _Traits>& __os, ^~~~~~~~ /usr/include/c++/6/bits/random.tcc:2944:5: note: template argument deduction/substitution failed: user.cpp:14:7: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’ g << n; ^ In file included from /usr/include/c++/6/random:51:0, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:108, from user.cpp:1: /usr/include/c++/6/bits/random.tcc:2734:5: note: candidate: template<class _IntType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::discrete_distribution<_IntType>&) operator<<(std::basic_ostream<_CharT, _Traits>& __os, ^~~~~~~~ /usr/include/c++/6/bits/random.tcc:2734:5: note: template argument deduction/substitution failed: user.cpp:14:7: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’ g << n; ^ In file included from /usr/include/c++/6/random:51:0, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:108, from user.cpp:1: /usr/include/c++/6/bits/random.tcc:2275:5: note: candidate: template<class _RealType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::student_t_distribution<_RealType>&)

Ceva nu functioneaza?