0_0_38269770_24114.cpp: In function 'void sieve(int)':
0_0_38269770_24114.cpp:24:57: error: invalid conversion from 'int (*)(int, int)' to 'int' [-fpermissive]
for (int i = n - 1; i >= 0; --i) inv[i] = mul(inv[i + 1], i + 1);
^
0_0_38269770_24114.cpp:9:5: note: initializing argument 1 of 'int mul(int, int)'
int mul(int x, int y) {return 1LL * x * y % P;}
^
0_0_38269770_24114.cpp:24:42: error: assignment of read-only location '*(inv + ((sizetype)i))'
for (int i = n - 1; i >= 0; --i) inv[i] = mul(inv[i + 1], i + 1);
^
0_0_38269770_24114.cpp:24:42: error: cannot convert 'int' to 'int(int, int)' in assignment
0_0_38269770_24114.cpp: In function 'void solve()':
0_0_38269770_24114.cpp:31:18: error: 'strlen' was not declared in this scope
n = strlen(s + 1);
^
0_0_38269770_24114.cpp:32:31: error: 'str' was not declared in this scope
for (int i = 1; i <= n; ++i) str[i] -= 48;
^
0_0_38269770_24114.cpp:40:50: error: 'str' was not declared in this scope
ans = inc(ans, mul(f[i - 1], mul(pow10[n - i], str[i])));
^
0_0_38269770_24114.cpp:44:22: error: 'str' was not declared in this scope
ans = inc(ans, mul(str[i], sum));
^
|