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_36375657_26867.cpp: In function 'long long int eular()':
0_0_36375657_26867.cpp:19:14: error: 'maxn' was not declared in this scope
   for(i=1;i<=maxn;i++) phi[i]=i;
              ^
0_0_36375657_26867.cpp:19:24: error: 'phi' was not declared in this scope
   for(i=1;i<=maxn;i++) phi[i]=i;
                        ^
0_0_36375657_26867.cpp:20:16: error: 'maxn' was not declared in this scope
     for(i=2;i<=maxn;i+=2) phi[i]/=2;
                ^
0_0_36375657_26867.cpp:20:27: error: 'phi' was not declared in this scope
     for(i=2;i<=maxn;i+=2) phi[i]/=2;
                           ^
0_0_36375657_26867.cpp:21:16: error: 'maxn' was not declared in this scope
     for(i=3;i<=maxn;i+=2)if(phi[i]==i){
                ^
0_0_36375657_26867.cpp:21:29: error: 'phi' was not declared in this scope
     for(i=3;i<=maxn;i+=2)if(phi[i]==i){
                             ^
0_0_36375657_26867.cpp: In function 'long long int eulerDropPow(long long int, char*, long long int)':
0_0_36375657_26867.cpp:27:19: error: 'phi' was not declared in this scope
 ll eulerNumbers = phi[c]; 
                   ^


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-06-29 20:08:41, Gzip enabled