Borderou de evaluare (job #1373840)

Utilizator PaueyPaula Nicoleta Gradu Pauey Data 4 martie 2015 20:55:21
Problema Checkin Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:49:10: error: no match for ‘operator<<’ (operand types are ‘std::ifstream {aka std::basic_ifstream<char>}’ and ‘int’) cout << solve(0, A[1] + B[1] * P) << '\n'; ^ user.cpp:49:10: note: candidates are: In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/random:41, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2753:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) operator<<(basic_ostream<_CharT, _Traits>& __os, ^ /usr/include/c++/4.8/bits/basic_string.h:2753:5: note: template argument deduction/substitution failed: user.cpp:49:37: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’ cout << solve(0, A[1] + B[1] * P) << '\n'; ^ In file included from /usr/include/c++/4.8/random:50:0, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:1: /usr/include/c++/4.8/bits/random.h:1277:5: note: template<class _RandomNumberEngine, unsigned int __w, class _UIntType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::independent_bits_engine<_RandomNumberEngine, __w, _UIntType>&) operator<<(std::basic_ostream<_CharT, _Traits>& __os, ^ /usr/include/c++/4.8/bits/random.h:1277:5: note: template argument deduction/substitution failed: user.cpp:49:37: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’ cout << solve(0, A[1] + B[1] * P) << '\n'; ^ In file included from /usr/include/c++/4.8/random:52:0, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:1: /usr/include/c++/4.8/bits/random.tcc:477:5: note: template<class _UIntType1, unsigned int __w1, unsigned int __n1, unsigned int __m1, unsigned int __r1, _UIntType1 __a1, unsigned int __u1, _UIntType1 __d1, unsigned int __s1, _UIntType1 __b1, unsigned int __t1, _UIntType1 __c1, unsigned int __l1, _UIntType1 __f1, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>&) operator<<(std::basic_ostream<_CharT, _Traits>& __os, ^ /usr/include/c++/4.8/bits/random.tcc:477:5: note: template argument deduction/substitution failed: user.cpp:49:37: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’ cout << solve(0, A[1] + B[1] * P) << '\n'; ^ In file included from /usr/include/c++/4.8/random:52:0, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:1: /usr/include/c++/4.8/bits/random.tcc:1029:5: note: template<class _IntType, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::uniform_int_distribution<_IntType>&) operator<<(std::basic_ostream<_CharT, _Traits>& __os, ^ /usr/include/c++/4.8/bits/random.tcc:1029:5: note: template argument deduction/substitution failed: user.cpp:49:37: note: ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’ cout << solve(0, A[1] + B[1] * P) << '\n'; ^

Ceva nu functioneaza?