0_0_34089107_4237.cpp:4:1: error: 'll' does not name a type
ll n, N, inv2;
^
0_0_34089107_4237.cpp:6:1: error: 'll' does not name a type
ll powermul( ll a, int b ){
^
0_0_34089107_4237.cpp: In function 'void Prime::init()':
0_0_34089107_4237.cpp:22:24: error: 'N' was not declared in this scope
for( int i = 2; i <= N; ++i ){
^
0_0_34089107_4237.cpp: At global scope:
0_0_34089107_4237.cpp:36:2: error: 'll' does not name a type
ll cprime[MAXN], a[MAXN], g[MAXN];
^
0_0_34089107_4237.cpp:37:17: error: 'Min25::ID' declared as an 'inline' variable
inline int ID( ll x ){
^
0_0_34089107_4237.cpp:37:17: error: 'll' was not declared in this scope
0_0_34089107_4237.cpp:37:23: error: expected ',' or ';' before '{' token
inline int ID( ll x ){
^
0_0_34089107_4237.cpp:40:9: error: 'll' does not name a type
inline ll calc( ll x ){
^
0_0_34089107_4237.cpp: In function 'void Min25::init()':
0_0_34089107_4237.cpp:49:4: error: 'cprime' was not declared in this scope
cprime[i] = ( cprime[i-1] + prime[i] ) % MOD;
^
0_0_34089107_4237.cpp:50:8: error: 'll' was not declared in this scope
for( ll L = 1, R; L <= n; L = R + 1 ){
^
0_0_34089107_4237.cpp:50:21: error: 'L' was not declared in this scope
for( ll L = 1, R; L <= n; L = R + 1 ){
^
0_0_34089107_4237.cpp:50:26: error: 'n' was not declared in this scope
for( ll L = 1, R; L <= n; L = R + 1 ){
^
0_0_34089107_4237.cpp:50:33: error: 'R' was not declared in this scope
for( ll L = 1, R; L <= n; L = R + 1 ){
^
0_0_34089107_4237.cpp:52:4: error: 'a' was not declared in this scope
a[++m] = n / L;
^
0_0_34089107_4237.cpp:53:16: error: 'N' was not declared in this scope
if( a[m] <= N ) id1[a[m]] = m;
^
0_0_34089107_4237.cpp:55:4: error: 'g' was not declared in this scope
g[m] = calc(a[m]);
^
0_0_34089107_4237.cpp:55:20: error: 'calc' was not declared in this scope
g[m] = calc(a[m]);
^
0_0_34089107_4237.cpp:59:10: error: 'll' was not declared in this scope
if( (ll)prime[i] * prime[i] > a[j] )
^
0_0_34089107_4237.cpp:59:13: error: expected ')' before 'prime'
if( (ll)prime[i] * prime[i] > a[j] )
^
0_0_34089107_4237.cpp:61:5: error: 'g' was not declared in this scope
g[j] -= ( g[ ID(a[j]/prime[i]) ] - cprime[i-1] + MOD ) * prime[i] % MOD;
^
0_0_34089107_4237.cpp:61:21: error: 'a' was not declared in this scope
g[j] -= ( g[ ID(a[j]/prime[i]) ] - cprime[i-1] + MOD ) * prime[i] % MOD;
^
0_0_34089107_4237.cpp:61:34: error: 'Min25::ID' cannot be used as a function
g[j] -= ( g[ ID(a[j]/prime[i]) ] - cprime[i-1] + MOD ) * prime[i] % MOD;
^
0_0_34089107_4237.cpp:61:40: error: 'cprime' was not declared in this scope
g[j] -= ( g[ ID(a[j]/prime[i]) ] - cprime[i-1] + MOD ) * prime[i] % MOD;
^
0_0_34089107_4237.cpp: In function 'int main()':
0_0_34089107_4237.cpp:68:23: error: 'scanf' was not declared in this scope
_w = scanf( "%d", &T );
^
0_0_34089107_4237.cpp:69:2: error: 'N' was not declared in this scope
N = 100000;
^
0_0_34089107_4237.cpp:72:26: error: 'n' was not declared in this scope
_w = scanf( "%lld%d", &n, &MOD ); ++n;
^
0_0_34089107_4237.cpp:73:3: error: 'inv2' was not declared in this scope
inv2 = powermul( 2, MOD - 2 );
^
0_0_34089107_4237.cpp:73:31: error: 'powermul' was not declared in this scope
inv2 = powermul( 2, MOD - 2 );
^
0_0_34089107_4237.cpp:74:8: error: 'll' was not declared in this scope
N = (ll)sqrt( (double)n + 0.5 );
^
0_0_34089107_4237.cpp:76:6: error: expected ';' before 'ans'
ll ans = ( ( n - 2 + MOD ) % MOD ) *
^
0_0_34089107_4237.cpp:78:9: error: 'ans' was not declared in this scope
ans = ( ans + Min25::g[ Min25::ID(n) ] - 2 + MOD ) % MOD;
^
0_0_34089107_4237.cpp:78:23: error: 'g' is not a member of 'Min25'
ans = ( ans + Min25::g[ Min25::ID(n) ] - 2 + MOD ) % MOD;
^
0_0_34089107_4237.cpp:78:44: error: 'Min25::ID' cannot be used as a function
ans = ( ans + Min25::g[ Min25::ID(n) ] - 2 + MOD ) % MOD;
^
0_0_34089107_4237.cpp:79:31: error: 'printf' was not declared in this scope
printf( "%lld\n", ans );
^
|