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_25571139_12263.cpp:4:15: error: conflicting declaration 'int q'
 int t,n,m,k,p,q,r,mod;
               ^
0_0_25571139_12263.cpp:3:13: note: previous declaration as 'int q [10000010]'
 int a[maxn],q[maxn];
             ^
0_0_25571139_12263.cpp: In function 'int main()':
0_0_25571139_12263.cpp:9:11: error: 'T' was not declared in this scope
     while(T--)
           ^
0_0_25571139_12263.cpp:12:13: error: 'i' was not declared in this scope
         for(i=1; i<=k; i++)
             ^
0_0_25571139_12263.cpp:14:13: error: 'i' was not declared in this scope
         for(i=k+1; i<=n; i++)
             ^
0_0_25571139_12263.cpp:15:36: error: invalid operands of types 'long long int' and 'int [10000010]' to binary 'operator*'
             a[i]=(1LL*p*a[i-1]+1LL*q*i+r)%mod;
                                    ^
0_0_25571139_12263.cpp:16:13: error: 'h' was not declared in this scope
         for(h=1,t=A=B=0,i=n; i; i--)
             ^
0_0_25571139_12263.cpp:16:25: error: 'i' was not declared in this scope
         for(h=1,t=A=B=0,i=n; i; i--)
                         ^


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-17 14:42:59, Gzip enabled