0_0_25584974_29676.cpp:4:1: error: expected initializer before 'const'
const int M = 1e7+10;
^
0_0_25584974_29676.cpp:5:1: error: 'll' does not name a type
ll a[M],p,q,r,mod;
^
0_0_25584974_29676.cpp:6:1: error: 'll' does not name a type
ll n,m,k;
^
0_0_25584974_29676.cpp:7:1: error: 'll' does not name a type
ll lis[M],head,tail,t;
^
0_0_25584974_29676.cpp: In function 'int main()':
0_0_25584974_29676.cpp:10:19: error: 't' was not declared in this scope
scanf("%lld",&t);
^
0_0_25584974_29676.cpp:12:47: error: 'n' was not declared in this scope
scanf("%lld%lld%lld%lld%lld%lld%lld",&n,&m,&k,&p,&q,&r,&mod);
^
0_0_25584974_29676.cpp:12:50: error: 'm' was not declared in this scope
scanf("%lld%lld%lld%lld%lld%lld%lld",&n,&m,&k,&p,&q,&r,&mod);
^
0_0_25584974_29676.cpp:12:53: error: 'k' was not declared in this scope
scanf("%lld%lld%lld%lld%lld%lld%lld",&n,&m,&k,&p,&q,&r,&mod);
^
0_0_25584974_29676.cpp:12:56: error: 'p' was not declared in this scope
scanf("%lld%lld%lld%lld%lld%lld%lld",&n,&m,&k,&p,&q,&r,&mod);
^
0_0_25584974_29676.cpp:12:59: error: 'q' was not declared in this scope
scanf("%lld%lld%lld%lld%lld%lld%lld",&n,&m,&k,&p,&q,&r,&mod);
^
0_0_25584974_29676.cpp:12:62: error: 'r' was not declared in this scope
scanf("%lld%lld%lld%lld%lld%lld%lld",&n,&m,&k,&p,&q,&r,&mod);
^
0_0_25584974_29676.cpp:12:65: error: 'mod' was not declared in this scope
scanf("%lld%lld%lld%lld%lld%lld%lld",&n,&m,&k,&p,&q,&r,&mod);
^
0_0_25584974_29676.cpp:14:27: error: 'a' was not declared in this scope
scanf("%lld",&a[i]);
^
0_0_25584974_29676.cpp:16:13: error: 'a' was not declared in this scope
a[i] = ((p * a[i - 1]) % mod + q * i % mod + r) % mod;
^
0_0_25584974_29676.cpp:17:9: error: 'head' was not declared in this scope
head = tail = 0;
^
0_0_25584974_29676.cpp:17:16: error: 'tail' was not declared in this scope
head = tail = 0;
^
0_0_25584974_29676.cpp:19:32: error: 'a' was not declared in this scope
while(head < tail&&a[lis[tail-1]] <= a[i]) -- tail;
^
0_0_25584974_29676.cpp:19:34: error: 'lis' was not declared in this scope
while(head < tail&&a[lis[tail-1]] <= a[i]) -- tail;
^
0_0_25584974_29676.cpp:20:13: error: 'lis' was not declared in this scope
lis[tail++] = i;
^
0_0_25584974_29676.cpp:22:8: error: 'll' was not declared in this scope
ll A = 0,B = 0;
^
0_0_25584974_29676.cpp:23:8: error: 'A' was not declared in this scope
A += a[lis[head]] ^ (n-m+1);
^
0_0_25584974_29676.cpp:23:13: error: 'a' was not declared in this scope
A += a[lis[head]] ^ (n-m+1);
^
0_0_25584974_29676.cpp:23:15: error: 'lis' was not declared in this scope
A += a[lis[head]] ^ (n-m+1);
^
0_0_25584974_29676.cpp:24:8: error: 'B' was not declared in this scope
B += (tail - head) ^ (n - m + 1);
^
|