Problem crypto
User Vinayak01
Submission Time 2024-02-16 14:35:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

crypto.cpp: In function ‘std::vector<long long int> factorial(int)’:
crypto.cpp:8:41: error: ‘MOD’ was not declared in this scope
8 | result[i] = (i * result[i-1]) % MOD;
| ^~~
crypto.cpp: In function ‘int main()’:
crypto.cpp:54:38: error: no matches converting function ‘count’ to type ‘const class std::vector<long long int>& (*)(const class std::vector<int>&)’
54 | int best = dynamic(p, fact, count);
| ^
In file included from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from crypto.cpp:1:
/usr/include/c++/9/pstl/glue_algorithm_defs.h:101:1: note: candidates are: ‘template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::dif