0_0_33979320_12043.cpp:1:2: error: 'n' does not name a type
n, int64_t Mod) {
^
0_0_33979320_12043.cpp:13:1: error: 'int64_t' does not name a type
int64_t inv(int64_t x,int64_t Mod) {
^
0_0_33979320_12043.cpp: In function 'int main()':
0_0_33979320_12043.cpp:19:18: error: 'getP' was not declared in this scope
getP(10000002);
^
0_0_33979320_12043.cpp:21:19: error: 'scanf' was not declared in this scope
scanf("%d", &T) ;
^
0_0_33979320_12043.cpp:24:28: error: 'n' was not declared in this scope
scanf("%lld %lld",&n, &Mod);
^
0_0_33979320_12043.cpp:24:32: error: 'Mod' was not declared in this scope
scanf("%lld %lld",&n, &Mod);
^
0_0_33979320_12043.cpp:26:16: error: 'get_g' was not declared in this scope
get_g(n) ;
^
0_0_33979320_12043.cpp:27:9: error: 'int64_t' was not declared in this scope
int64_t ans = (n <= 10000000)?sum[n]:S(n,0) ;
^
0_0_33979320_12043.cpp:28:9: error: 'ans' was not declared in this scope
ans %= Mod ;
^
0_0_33979320_12043.cpp:30:17: error: expected ';' before 'ans2'
int64_t ans2 = MOD(MOD(n + 3)*MOD(n)) ;
^
0_0_33979320_12043.cpp:31:9: error: 'ans2' was not declared in this scope
ans2 = MOD(ans2*inv(2, Mod)) ;
^
0_0_33979320_12043.cpp:31:35: error: 'inv' was not declared in this scope
ans2 = MOD(ans2*inv(2, Mod)) ;
^
0_0_33979320_12043.cpp:31:36: error: 'MOD' was not declared in this scope
ans2 = MOD(ans2*inv(2, Mod)) ;
^
0_0_33979320_12043.cpp:32:45: error: 'printf' was not declared in this scope
printf("%lld\n", MOD(ans + ans2 - 4)) ;
^
|