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_17798179_406.cpp: In function 'void getfact()':
0_0_17798179_406.cpp:3:5: error: 'fact' was not declared in this scope
     fact[0]=fact[1]=inv[0]=inv[1]=f[0]=f[1]=1;   
     ^
0_0_17798179_406.cpp:3:21: error: 'inv' was not declared in this scope
     fact[0]=fact[1]=inv[0]=inv[1]=f[0]=f[1]=1;   
                     ^
0_0_17798179_406.cpp:3:35: error: 'f' was not declared in this scope
     fact[0]=fact[1]=inv[0]=inv[1]=f[0]=f[1]=1;   
                                   ^
0_0_17798179_406.cpp:4:21: error: 'n' was not declared in this scope
     for (int i=2;i<=n;i++)  
                     ^
0_0_17798179_406.cpp:6:29: error: 'MOD' was not declared in this scope
         fact[i]=fact[i-1]*i%MOD;  
                             ^


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-12-02 12:27:00, Gzip enabled