Borderou de evaluare (job #2744679)
Utilizator | Data | 24 aprilie 2021 22:44:37 | |
---|---|---|---|
Problema | Al k-lea termen Fibonacci | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void solve(int, std::istream&, std::ostream&)':
main.cpp:242:22: error: missing template arguments before '(' token
auto res = Matrix(rec) * power(Matrix(mat), max(0, k - 2));
^
main.cpp:242:42: error: missing template arguments before '(' token
auto res = Matrix(rec) * power(Matrix(mat), max(0, k - 2));
^
main.cpp:242:62: error: 'power' was not declared in this scope
auto res = Matrix(rec) * power(Matrix(mat), max(0, k - 2));
^
main.cpp:242:62: note: suggested alternative:
main.cpp:138:10: note: 'Modular::power'
Mint power(long long _a, long long b) {Mint ret(1), a(_a); while (b > 0) {if (b & 1) ret *= a; a *= a; b >>= 1;} return ret;}
^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !