0_0_26814838_17996.cpp: In function 'void doit()':
0_0_26814838_17996.cpp:52:53: error: no matching function for call to 'modinv(long long int, const int&)'
long long cnt=1ll*n*n%P*(n-1)%P*modinv(2ll,P)%P-1ll*(n-1)*n%P*(2*n-1)%P*modinv(6ll,P)%P;
^
0_0_26814838_17996.cpp:52:53: note: candidate is:
0_0_26814838_17996.cpp:37:3: note: template<class T> T modinv(T, T)
T modinv(T m, T n) {
^
0_0_26814838_17996.cpp:37:3: note: template argument deduction/substitution failed:
0_0_26814838_17996.cpp:52:53: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
long long cnt=1ll*n*n%P*(n-1)%P*modinv(2ll,P)%P-1ll*(n-1)*n%P*(2*n-1)%P*modinv(6ll,P)%P;
^
0_0_26814838_17996.cpp:52:93: error: no matching function for call to 'modinv(long long int, const int&)'
long long cnt=1ll*n*n%P*(n-1)%P*modinv(2ll,P)%P-1ll*(n-1)*n%P*(2*n-1)%P*modinv(6ll,P)%P;
^
0_0_26814838_17996.cpp:52:93: note: candidate is:
0_0_26814838_17996.cpp:37:3: note: template<class T> T modinv(T, T)
T modinv(T m, T n) {
^
0_0_26814838_17996.cpp:37:3: note: template argument deduction/substitution failed:
0_0_26814838_17996.cpp:52:93: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
long long cnt=1ll*n*n%P*(n-1)%P*modinv(2ll,P)%P-1ll*(n-1)*n%P*(2*n-1)%P*modinv(6ll,P)%P;
^
0_0_26814838_17996.cpp:54:53: error: no matching function for call to 'modinv(long long int, const int&)'
ans=(1ll*n*n%P+n)%P*n%P*(n-1)%P*modinv(2ll,P)%P;
^
0_0_26814838_17996.cpp:54:53: note: candidate is:
0_0_26814838_17996.cpp:37:3: note: template<class T> T modinv(T, T)
T modinv(T m, T n) {
^
0_0_26814838_17996.cpp:37:3: note: template argument deduction/substitution failed:
0_0_26814838_17996.cpp:54:53: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
ans=(1ll*n*n%P+n)%P*n%P*(n-1)%P*modinv(2ll,P)%P;
^
0_0_26814838_17996.cpp:55:66: error: no matching function for call to 'modinv(long long int, const int&)'
ans=(ans - 1ll*(2*n+1)*(n-1)%P*n%P*(2*n-1)%P*modinv(6ll,P)%P)%P;
^
0_0_26814838_17996.cpp:55:66: note: candidate is:
0_0_26814838_17996.cpp:37:3: note: template<class T> T modinv(T, T)
T modinv(T m, T n) {
^
0_0_26814838_17996.cpp:37:3: note: template argument deduction/substitution failed:
0_0_26814838_17996.cpp:55:66: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
ans=(ans - 1ll*(2*n+1)*(n-1)%P*n%P*(2*n-1)%P*modinv(6ll,P)%P)%P;
^
0_0_26814838_17996.cpp:56:58: error: no matching function for call to 'modinv(long long int, const int&)'
ans=(ans + 1ll*n*n%P*(n-1)%P*(n-1)%P*modinv(4ll,P)%P )%P;
^
0_0_26814838_17996.cpp:56:58: note: candidate is:
0_0_26814838_17996.cpp:37:3: note: template<class T> T modinv(T, T)
T modinv(T m, T n) {
^
0_0_26814838_17996.cpp:37:3: note: template argument deduction/substitution failed:
0_0_26814838_17996.cpp:56:58: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
ans=(ans + 1ll*n*n%P*(n-1)%P*(n-1)%P*modinv(4ll,P)%P )%P;
^
0_0_26814838_17996.cpp:58:29: error: no matching function for call to 'modinv(long long int&, const int&)'
ans=ans*modinv(cnt,P)%P;
^
0_0_26814838_17996.cpp:58:29: note: candidate is:
0_0_26814838_17996.cpp:37:3: note: template<class T> T modinv(T, T)
T modinv(T m, T n) {
^
0_0_26814838_17996.cpp:37:3: note: template argument deduction/substitution failed:
0_0_26814838_17996.cpp:58:29: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
ans=ans*modinv(cnt,P)%P;
^
0_0_26814838_17996.cpp:59:29: error: no matching function for call to 'modinv(long long int, const int&)'
ans=ans*modinv(2ll,P)%P;
^
0_0_26814838_17996.cpp:59:29: note: candidate is:
0_0_26814838_17996.cpp:37:3: note: template<class T> T modinv(T, T)
T modinv(T m, T n) {
^
0_0_26814838_17996.cpp:37:3: note: template argument deduction/substitution failed:
0_0_26814838_17996.cpp:59:29: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
ans=ans*modinv(2ll,P)%P;
^
0_0_26814838_17996.cpp:66:85: error: no matching function for call to 'modinv(long long int, const int&)'
long long cnt=1ll*(n*n%P-n)*(n-1)%P+1ll*(n-2)*(n-1)%P*(2*n-3)%P*modinv(6ll,P)%P+1ll*(n-1)*(n-2)%P*(1-2*n)%P*modinv(2ll,P)%P;
^
0_0_26814838_17996.cpp:66:85: note: candidate is:
0_0_26814838_17996.cpp:37:3: note: template<class T> T modinv(T, T)
T modinv(T m, T n) {
^
0_0_26814838_17996.cpp:37:3: note: template argument deduction/substitution failed:
0_0_26814838_17996.cpp:66:85: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
long long cnt=1ll*(n*n%P-n)*(n-1)%P+1ll*(n-2)*(n-1)%P*(2*n-3)%P*modinv(6ll,P)%P+1ll*(n-1)*(n-2)%P*(1-2*n)%P*modinv(2ll,P)%P;
^
0_0_26814838_17996.cpp:66:129: error: no matching function for call to 'modinv(long long int, const int&)'
long long cnt=1ll*(n*n%P-n)*(n-1)%P+1ll*(n-2)*(n-1)%P*(2*n-3)%P*modinv(6ll,P)%P+1ll*(n-1)*(n-2)%P*(1-2*n)%P*modinv(2ll,P)%P;
^
0_0_26814838_17996.cpp:66:129: note: candidate is:
0_0_26814838_17996.cpp:37:3: note: template<class T> T modinv(T, T)
T modinv(T m, T n) {
^
0_0_26814838_17996.cpp:37:3: note: template argument deduction/substitution failed:
0_0_26814838_17996.cpp:66:129: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
long long cnt=1ll*(n*n%P-n)*(n-1)%P+1ll*(n-2)*(n-1)%P*(2*n-3)%P*modinv(6ll,P)%P+1ll*(n-1)*(n-2)%P*(1-2*n)%P*modinv(2ll,P)%P;
^
0_0_26814838_17996.cpp:68:52: error: no matching function for call to 'modinv(long long int, const int&)'
ans=(1ll*n*n%P*(n+1)%P*(n+1)%P*modinv(4ll,P)%P-1ll*(n+1)*n%P*modinv(2ll,P)%P)%P;
^
0_0_26814838_17996.cpp:68:52: note: candidate is:
0_0_26814838_17996.cpp:37:3: note: template<class T> T modinv(T, T)
T modinv(T m, T n) {
^
0_0_26814838_17996.cpp:37:3: note: template argument deduction/substitution failed:
0_0_26814838_17996.cpp:68:52: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
ans=(1ll*n*n%P*(n+1)%P*(n+1)%P*modinv(4ll,P)%P-1ll*(n+1)*n%P*modinv(2ll,P)%P)%P;
^
0_0_26814838_17996.cpp:68:82: error: no matching function for call to 'modinv(long long int, const int&)'
ans=(1ll*n*n%P*(n+1)%P*(n+1)%P*modinv(4ll,P)%P-1ll*(n+1)*n%P*modinv(2ll,P)%P)%P;
^
0_0_26814838_17996.cpp:68:82: note: candidate is:
0_0_26814838_17996.cpp:37:3: note: template<class T> T modinv(T, T)
T modinv(T m, T n) {
^
0_0_26814838_17996.cpp:37:3: note: template argument deduction/substitution failed:
0_0_26814838_17996.cpp:68:82: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
ans=(1ll*n*n%P*(n+1)%P*(n+1)%P*modinv(4ll,P)%P-1ll*(n+1)*n%P*modinv(2ll,P)%P)%P;
^
0_0_26814838_17996.cpp:70:29: error: no matching function for call to 'modinv(long long int&, const int&)'
ans=ans*modinv(cnt,P)%P;
^
0_0_26814838_17996.cpp:70:29: note: candidate is:
0_0_26814838_17996.cpp:37:3: note: template<class T> T modinv(T, T)
T modinv(T m, T n) {
^
0_0_26814838_17996.cpp:37:3: note: template argument deduction/substitution failed:
0_0_26814838_17996.cpp:70:29: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
ans=ans*modinv(cnt,P)%P;
^
0_0_26814838_17996.cpp:71:29: error: no matching function for call to 'modinv(long long int, const int&)'
ans=ans*modinv(2ll,P)%P;
^
0_0_26814838_17996.cpp:71:29: note: candidate is:
0_0_26814838_17996.cpp:37:3: note: template<class T> T modinv(T, T)
T modinv(T m, T n) {
^
0_0_26814838_17996.cpp:37:3: note: template argument deduction/substitution failed:
0_0_26814838_17996.cpp:71:29: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
ans=ans*modinv(2ll,P)%P;
^
|