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_25940234_31355.cpp:7:1: error: expected initializer before 'int'
 int f[maxn];
 ^
0_0_25940234_31355.cpp: In function 'void init()':
0_0_25940234_31355.cpp:10:29: error: 'fac' was not declared in this scope
     for(int i=1;i<maxn;++i) fac[i]=i;
                             ^
0_0_25940234_31355.cpp:14:12: error: 'fac' was not declared in this scope
         if(fac[i]==i)
            ^
0_0_25940234_31355.cpp:17:14: error: 'fac' was not declared in this scope
         if(i/fac[i]%fac[i]) phi[i]=(fac[i]-1)*phi[i/fac[i]],miu[i]=-miu[i/fac[i]];
              ^
0_0_25940234_31355.cpp: In function 'int main()':
0_0_25940234_31355.cpp:43:16: error: 'f' was not declared in this scope
         memset(f,0,sizeof(int)*(x+1));
                ^


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-09-28 03:29:36, Gzip enabled