0_0_35267375_11932.cpp: In static member function 'static unsigned int Modint<MOD>::fast_mod(uint64_t, unsigned int)':
0_0_35267375_11932.cpp:41:25: error: expected ')' before ':' token
asm("divl %4\n" : "=a" (quot), "=d" (rem) : "d" (x_high), "a" (x_low), "r" (m));
^
0_0_35267375_11932.cpp:41:49: error: expression cannot be used as a function
asm("divl %4\n" : "=a" (quot), "=d" (rem) : "d" (x_high), "a" (x_low), "r" (m));
^
0_0_35267375_11932.cpp:41:77: error: expression cannot be used as a function
asm("divl %4\n" : "=a" (quot), "=d" (rem) : "d" (x_high), "a" (x_low), "r" (m));
^
0_0_35267375_11932.cpp:41:86: error: expression cannot be used as a function
asm("divl %4\n" : "=a" (quot), "=d" (rem) : "d" (x_high), "a" (x_low), "r" (m));
^
0_0_35267375_11932.cpp:41:87: error: there are no arguments to 'asm' that depend on a template parameter, so a declaration of 'asm' must be available [-fpermissive]
asm("divl %4\n" : "=a" (quot), "=d" (rem) : "d" (x_high), "a" (x_low), "r" (m));
^
0_0_35267375_11932.cpp:41:87: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_35267375_11932.cpp: At global scope:
0_0_35267375_11932.cpp:76:24: error: 'MOD' is not a valid template argument for type 'const int&' because object 'MOD' has not external linkage
using mint = Modint<MOD>;
^
0_0_35267375_11932.cpp: In function 'int main()':
0_0_35267375_11932.cpp:84:19: error: 'mint' was not declared in this scope
static vector<mint> fact{1, 1}, factinv{1, 1}, inv{0, 1};
^
0_0_35267375_11932.cpp:84:23: error: template argument 1 is invalid
static vector<mint> fact{1, 1}, factinv{1, 1}, inv{0, 1};
^
0_0_35267375_11932.cpp:84:23: error: template argument 2 is invalid
0_0_35267375_11932.cpp:84:29: error: invalid type in declaration before '{' token
static vector<mint> fact{1, 1}, factinv{1, 1}, inv{0, 1};
^
0_0_35267375_11932.cpp:84:34: error: scalar object 'fact' requires one element in initializer
static vector<mint> fact{1, 1}, factinv{1, 1}, inv{0, 1};
^
0_0_35267375_11932.cpp:84:49: error: scalar object 'factinv' requires one element in initializer
static vector<mint> fact{1, 1}, factinv{1, 1}, inv{0, 1};
^
0_0_35267375_11932.cpp:84:60: error: scalar object 'inv' requires one element in initializer
static vector<mint> fact{1, 1}, factinv{1, 1}, inv{0, 1};
^
0_0_35267375_11932.cpp:100:14: error: expected ';' before 'ans'
mint ans;
^
0_0_35267375_11932.cpp:103:13: error: 'ans' was not declared in this scope
ans += (i&1? -1 : 1) * nCr(n, i) * nCr(n-1 + k-i*m, n-1);
^
0_0_35267375_11932.cpp:103:44: error: invalid operands of types 'int' and 'void' to binary 'operator*'
ans += (i&1? -1 : 1) * nCr(n, i) * nCr(n-1 + k-i*m, n-1);
^
0_0_35267375_11932.cpp:104:19: error: 'ans' was not declared in this scope
} cout << ans << '\n';
^
|