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_15349801_30188.cpp:3:9: error: '__int64' does not name a type
 typedef __int64 ll; 
         ^
0_0_15349801_30188.cpp:5:1: error: 'll' does not name a type
 ll phi[MM], sum[MM];
 ^
0_0_15349801_30188.cpp: In function 'void get_phi()':
0_0_15349801_30188.cpp:8:6: error: 'll' was not declared in this scope
      ll i,j,k;
      ^
0_0_15349801_30188.cpp:9:10: error: 'i' was not declared in this scope
      for(i=1;i<MM;i++) phi[i]=i;
          ^
0_0_15349801_30188.cpp:9:24: error: 'phi' was not declared in this scope
      for(i=1;i<MM;i++) phi[i]=i;
                        ^
0_0_15349801_30188.cpp:10:10: error: 'i' was not declared in this scope
      for(i=2;i<MM;i+=2) phi[i]>>=1;
          ^
0_0_15349801_30188.cpp:10:25: error: 'phi' was not declared in this scope
      for(i=2;i<MM;i+=2) phi[i]>>=1;
                         ^
0_0_15349801_30188.cpp:11:10: error: 'i' was not declared in this scope
      for(i=3;i<MM;i++) {
          ^
0_0_15349801_30188.cpp:12:13: error: 'phi' was not declared in this scope
          if(phi[i]==i) {
             ^
0_0_15349801_30188.cpp:13:18: error: 'j' was not declared in this scope
              for(j=i;j<MM;j+=i) 
                  ^
0_0_15349801_30188.cpp:17:6: error: 'sum' was not declared in this scope
      sum[0]=0;
      ^
0_0_15349801_30188.cpp:18:10: error: 'i' was not declared in this scope
      for(i=1;i<MM;i++) sum[i]=sum[i-1]+(phi[i]<<1);
          ^
0_0_15349801_30188.cpp:18:41: error: 'phi' was not declared in this scope
      for(i=1;i<MM;i++) sum[i]=sum[i-1]+(phi[i]<<1);
                                         ^
0_0_15349801_30188.cpp: In function 'void solve()':
0_0_15349801_30188.cpp:21:22: error: 'sum' was not declared in this scope
     printf("%I64d\n",sum[N]+1);
                      ^
0_0_15349801_30188.cpp:21:30: error: 'printf' was not declared in this scope
     printf("%I64d\n",sum[N]+1);
                              ^
0_0_15349801_30188.cpp: In function 'int main()':
0_0_15349801_30188.cpp:25:24: error: 'scanf' was not declared in this scope
     while(scanf("%d",&N)!=EOF) solve();
                        ^
0_0_15349801_30188.cpp:25:27: error: 'EOF' was not declared in this scope
     while(scanf("%d",&N)!=EOF) 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-11-27 01:02:44, Gzip enabled