0_0_32229496_10698.cpp:45:18: error: declaration does not declare anything [-fpermissive]
#define int long long;
^
0_0_32229496_10698.cpp:47:7: note: in expansion of macro 'int'
const int P = 1e9 + 7;
^
0_0_32229496_10698.cpp:47:11: error: 'P' does not name a type
const int P = 1e9 + 7;
^
0_0_32229496_10698.cpp:45:18: error: declaration does not declare anything [-fpermissive]
#define int long long;
^
0_0_32229496_10698.cpp:48:1: note: in expansion of macro 'int'
int n;
^
0_0_32229496_10698.cpp:48:5: error: 'n' does not name a type
int n;
^
0_0_32229496_10698.cpp:45:18: error: declaration does not declare anything [-fpermissive]
#define int long long;
^
0_0_32229496_10698.cpp:50:8: note: in expansion of macro 'int'
inline int phi(int x)
^
0_0_32229496_10698.cpp:45:22: error: expected ')' before ';' token
#define int long long;
^
0_0_32229496_10698.cpp:50:16: note: in expansion of macro 'int'
inline int phi(int x)
^
0_0_32229496_10698.cpp:45:22: error: expected constructor, destructor, or type conversion before ';' token
#define int long long;
^
0_0_32229496_10698.cpp:50:16: note: in expansion of macro 'int'
inline int phi(int x)
^
0_0_32229496_10698.cpp:50:20: error: 'x' does not name a type
inline int phi(int x)
^
0_0_32229496_10698.cpp: In function 'int main()':
0_0_32229496_10698.cpp:80:26: error: 'n' was not declared in this scope
while (~scanf("%d", &n) && n != 0)
^
0_0_32229496_10698.cpp:45:18: error: declaration does not declare anything [-fpermissive]
#define int long long;
^
0_0_32229496_10698.cpp:82:9: note: in expansion of macro 'int'
int p = phi(n);
^
0_0_32229496_10698.cpp:82:13: error: 'p' was not declared in this scope
int p = phi(n);
^
0_0_32229496_10698.cpp:82:22: error: 'phi' was not declared in this scope
int p = phi(n);
^
0_0_32229496_10698.cpp:45:18: error: declaration does not declare anything [-fpermissive]
#define int long long;
^
0_0_32229496_10698.cpp:83:9: note: in expansion of macro 'int'
int ans = (((ll)(n * (n - 1)) >> 1) % P - ((ll)(n * p) >> 1) % P) % P;
^
0_0_32229496_10698.cpp:83:13: error: 'ans' was not declared in this scope
int ans = (((ll)(n * (n - 1)) >> 1) % P - ((ll)(n * p) >> 1) % P) % P;
^
0_0_32229496_10698.cpp:83:47: error: 'P' was not declared in this scope
int ans = (((ll)(n * (n - 1)) >> 1) % P - ((ll)(n * p) >> 1) % P) % P;
^
|