0_0_38502814_4904.cpp:9:1: error: expected initializer before 'int'
int p[SQ+5],flg[SQ+5],cnt;
^
0_0_38502814_4904.cpp: In function 'void prework()':
0_0_38502814_4904.cpp:15:14: error: 'flg' was not declared in this scope
if (!flg[i]) {
^
0_0_38502814_4904.cpp:16:13: error: 'p' was not declared in this scope
p[++cnt]=i;
^
0_0_38502814_4904.cpp:16:17: error: 'cnt' was not declared in this scope
p[++cnt]=i;
^
0_0_38502814_4904.cpp:18:25: error: 'cnt' was not declared in this scope
for (int j=1;j<=cnt && i*p[j]<=SQ;j++) {
^
0_0_38502814_4904.cpp:18:34: error: 'p' was not declared in this scope
for (int j=1;j<=cnt && i*p[j]<=SQ;j++) {
^
0_0_38502814_4904.cpp:19:13: error: 'flg' was not declared in this scope
flg[i*p[j]]=1;
^
0_0_38502814_4904.cpp:23:5: error: 'prcnt' was not declared in this scope
prcnt=cnt;
^
0_0_38502814_4904.cpp:23:11: error: 'cnt' was not declared in this scope
prcnt=cnt;
^
0_0_38502814_4904.cpp: In function 'int calcphi(int)':
0_0_38502814_4904.cpp:27:18: error: 'p' was not declared in this scope
for (int j=1;p[j]*p[j]<=x && j<=cnt;j++) {
^
0_0_38502814_4904.cpp:27:37: error: 'cnt' was not declared in this scope
for (int j=1;p[j]*p[j]<=x && j<=cnt;j++) {
^
0_0_38502814_4904.cpp: In function 'void solve()':
0_0_38502814_4904.cpp:93:22: error: 'MOD' was not declared in this scope
ll tmpn=n,tmpmod=MOD;
^
0_0_38502814_4904.cpp: In function 'int main()':
0_0_38502814_4904.cpp:119:20: error: 'MOD' was not declared in this scope
while (cin>>n>>MOD) solve();
^
|