Borderou de evaluare (job #1024837)

Utilizator ELHoriaHoria Cretescu ELHoria Data 9 noiembrie 2013 10:45:02
Problema Drumuri3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘SquareMatrix<ZnInteger<10007> > logPow(SquareMatrix<ZnInteger<10007> >, int)’: user.cpp:254:21: error: no match for ‘operator*’ (operand types are ‘SquareMatrix<ZnInteger<10007> >’ and ‘SquareMatrix<ZnInteger<10007> >’) B = logPow(A,K/2) * (A.exponentiate(K/2) + I); ^ user.cpp:254:21: note: candidate is: user.cpp:163:16: note: SquareMatrix<T> SquareMatrix<T>::operator*(SquareMatrix<T>&) [with T = ZnInteger<10007>] SquareMatrix operator * (SquareMatrix &B) { ^ user.cpp:163:16: note: no known conversion for argument 1 from ‘SquareMatrix<ZnInteger<10007> >’ to ‘SquareMatrix<ZnInteger<10007> >&’ user.cpp:257:28: error: no match for ‘operator*’ (operand types are ‘SquareMatrix<ZnInteger<10007> >’ and ‘SquareMatrix<ZnInteger<10007> >’) B = logPow(B,(K - 1)/2 ) * (C + I) + A * (C * C); ^ user.cpp:257:28: note: candidate is: user.cpp:163:16: note: SquareMatrix<T> SquareMatrix<T>::operator*(SquareMatrix<T>&) [with T = ZnInteger<10007>] SquareMatrix operator * (SquareMatrix &B) { ^ user.cpp:163:16: note: no known conversion for argument 1 from ‘SquareMatrix<ZnInteger<10007> >’ to ‘SquareMatrix<ZnInteger<10007> >&’ user.cpp:257:42: error: no match for ‘operator*’ (operand types are ‘SquareMatrix<ZnInteger<10007> >’ and ‘SquareMatrix<ZnInteger<10007> >’) B = logPow(B,(K - 1)/2 ) * (C + I) + A * (C * C); ^ user.cpp:257:42: note: candidate is: user.cpp:163:16: note: SquareMatrix<T> SquareMatrix<T>::operator*(SquareMatrix<T>&) [with T = ZnInteger<10007>] SquareMatrix operator * (SquareMatrix &B) { ^ user.cpp:163:16: note: no known conversion for argument 1 from ‘SquareMatrix<ZnInteger<10007> >’ to ‘SquareMatrix<ZnInteger<10007> >&’ user.cpp: In function ‘int main()’: user.cpp:284:25: error: cannot bind ‘std::basic_ostream<char>’ lvalue to ‘std::basic_ostream<char>&&’ cout<<B.getElement(a,b)<<"\n"; ^ In file included from /usr/local/include/c++/4.8.0/istream:39:0, from /usr/local/include/c++/4.8.0/fstream:38, from user.cpp:1: /usr/local/include/c++/4.8.0/ostream:602:5: error: initializing argument 1 of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&&, const _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = ZnInteger<10007>]’ operator<<(basic_ostream<_CharT, _Traits>&& __os, const _Tp& __x) ^

Ceva nu functioneaza?