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_21795523_5659.cpp: In function 'long long int fast(long long int, long long int)':
0_0_21795523_5659.cpp:22:25: error: 'mod' was not declared in this scope
             ans=(ans*a)%mod;
                         ^
0_0_21795523_5659.cpp:24:17: error: 'mod' was not declared in this scope
         a=(a*a)%mod;
                 ^
0_0_21795523_5659.cpp: In function 'int main()':
0_0_21795523_5659.cpp:41:21: error: 'mod' was not declared in this scope
             a=(a*i)%mod;
                     ^
0_0_21795523_5659.cpp:45:21: error: 'mod' was not declared in this scope
             b=(b*i)%mod;
                     ^
0_0_21795523_5659.cpp:48:21: error: 'mod' was not declared in this scope
             b=(b*i)%mod;
                     ^
0_0_21795523_5659.cpp:50:18: error: 'mod' was not declared in this scope
         b=fast(b,mod-2);
                  ^


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 08:25:23, Gzip enabled