0_0_29853403_4860.cpp:4:13: error: multiple types in one declaration
typedef int __int128;
^
0_0_29853403_4860.cpp:4:13: error: declaration does not declare anything [-fpermissive]
0_0_29853403_4860.cpp:14:1: error: 'LLL' does not name a type
LLL n;
^
0_0_29853403_4860.cpp:30:10: error: variable or field 'add' declared void
void add(LLL &x, LLL y) {
^
0_0_29853403_4860.cpp:30:10: error: 'LLL' was not declared in this scope
0_0_29853403_4860.cpp:30:15: error: 'x' was not declared in this scope
void add(LLL &x, LLL y) {
^
0_0_29853403_4860.cpp:30:18: error: 'LLL' was not declared in this scope
void add(LLL &x, LLL y) {
^
0_0_29853403_4860.cpp:34:1: error: 'LLL' does not name a type
LLL calc(int k, LLL L, LLL R) {
^
0_0_29853403_4860.cpp: In function 'int main()':
0_0_29853403_4860.cpp:54:14: error: 'n' was not declared in this scope
read(n);
^
0_0_29853403_4860.cpp:55:9: error: 'LLL' was not declared in this scope
LLL r = 0;
^
0_0_29853403_4860.cpp:56:16: error: 'r' was not declared in this scope
for(; (r + 2) * (r + 2) * (r + 2) - 1 <= n; r++);
^
0_0_29853403_4860.cpp:57:13: error: expected ';' before 'ans'
LLL ans = calc(r + 1, (r + 1) * (r + 1) * (r + 1) - 1, n);
^
0_0_29853403_4860.cpp:58:29: error: 'r' was not declared in this scope
for(int i = 1; i <= r; i++) {
^
0_0_29853403_4860.cpp:59:17: error: 'ans' was not declared in this scope
add(ans, 1LL * phi[i] * ((3LL * i * Sum2(r / i)) % MOD + 3LL * Sum1(r / i) % MOD + r / i) % MOD) ;
^
0_0_29853403_4860.cpp:59:108: error: 'add' was not declared in this scope
add(ans, 1LL * phi[i] * ((3LL * i * Sum2(r / i)) % MOD + 3LL * Sum1(r / i) % MOD + r / i) % MOD) ;
^
0_0_29853403_4860.cpp:61:17: error: 'ans' was not declared in this scope
cout << ans << '\n';
^
|