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_30259779_20288.cpp: In function 'long long int inv(long long int)':
0_0_30259779_20288.cpp:15:9: error: 'a' was not declared in this scope
         a*=a;
         ^
0_0_30259779_20288.cpp:16:12: error: expected primary-expression before '%' token
         a%=%mod;
            ^
0_0_30259779_20288.cpp: In function 'int main()':
0_0_30259779_20288.cpp:27:26: error: 'm' was not declared in this scope
         scanf("%d%d",&n,&m);
                          ^
0_0_30259779_20288.cpp:34:63: error: 'x' was not declared in this scope
             sum[i]=(sum[i-1]+(a+(1-p+mod)%mod*(a+sum[i-1]-sum[x-1]+mod)%mod*inv(p)%mod))%mod;
                                                               ^
0_0_30259779_20288.cpp:36:15: error: conflicting declaration 'int r'
         int l,r;
               ^
0_0_30259779_20288.cpp:28:19: note: previous declaration as 'long long int r'
         long long r,s,a,p;
                   ^


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