F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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();
                    ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-05-18 13:47:41, Gzip enabled