Borderou de evaluare (job #1427111)
Utilizator | Data | 1 mai 2015 15:51:07 | |
---|---|---|---|
Problema | Al k-lea termen Fibonacci | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In instantiation of ‘T exp(T, int, T) [with T = std::array<std::array<long long unsigned int, 2u>, 2u>]’:
user.cpp:28:72: required from here
user.cpp:23:18: error: no match for ‘operator*’ (operand types are ‘const std::array<std::array<long long unsigned int, 2u>, 2u>’ and ‘const std::array<std::array<long long unsigned int, 2u>, 2u>’)
return x ? exp(e*e, x/2, x&1 ? rez*e : rez) : rez; }
^
user.cpp:23:18: note: candidate is:
user.cpp:11:14: note: template<class T, long unsigned int n, long unsigned int m, long unsigned int p> mat<T, n, m> operator*(mat<T, n, p>&, mat<T, p, m>&)
mat<T, n, m> operator*(const mat<T, n, p>& a, const mat<T, p, m>& b){
^
user.cpp:11:14: note: template argument deduction/substitution failed:
user.cpp:23:18: note: mismatched types ‘long unsigned int’ and ‘#‘integer_cst’ not supported by dump_type#<type error>’
return x ? exp(e*e, x/2, x&1 ? rez*e : rez) : rez; }
^
user.cpp:23:18: note: ‘const std::array<std::array<long long unsigned int, 2u>, 2u>’ is not derived from ‘mat<T, n, p>’
user.cpp:23:36: error: no match for ‘operator*’ (operand types are ‘const std::array<std::array<long long unsigned int, 2u>, 2u>’ and ‘const std::array<std::array<long long unsigned int, 2u>, 2u>’)
return x ? exp(e*e, x/2, x&1 ? rez*e : rez) : rez; }
^
user.cpp:23:36: note: candidate is:
user.cpp:11:14: note: template<class T, long unsigned int n, long unsigned int m, long unsigned int p> mat<T, n, m> operator*(mat<T, n, p>&, mat<T, p, m>&)
mat<T, n, m> operator*(const mat<T, n, p>& a, const mat<T, p, m>& b){
^
user.cpp:11:14: note: template argument deduction/substitution failed:
user.cpp:23:36: note: mismatched types ‘long unsigned int’ and ‘#‘integer_cst’ not supported by dump_type#<type error>’
return x ? exp(e*e, x/2, x&1 ? rez*e : rez) : rez; }
^
user.cpp:23:36: note: ‘const std::array<std::array<long long unsigned int, 2u>, 2u>’ is not derived from ‘mat<T, n, p>’
user.cpp: In function ‘T exp(T, int, T) [with T = std::array<std::array<long long unsigned int, 2u>, 2u>]’:
user.cpp:23:53: warning: control reaches end of non-void function [-Wreturn-type]
return x ? exp(e*e, x/2, x&1 ? rez*e : rez) : rez; }
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !