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--)
^
|