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_25571064_9512.cpp:4:9: error: '__ll64' does not name a type
 typedef __ll64 ll;
         ^
0_0_25571064_9512.cpp:5:1: error: 'll' does not name a type
 ll num[10000005];
 ^
0_0_25571064_9512.cpp: In function 'int main()':
0_0_25571064_9512.cpp:12:9: error: 'll' was not declared in this scope
         ll n,m,k,p,q,r,mod;
         ^
0_0_25571064_9512.cpp:13:54: error: 'n' was not declared in this scope
         scanf("%I64d%I64d%I64d%I64d%I64d%I64d%I64d",&n,&m,&k,&p,&q,&r,&mod);
                                                      ^
0_0_25571064_9512.cpp:13:57: error: 'm' was not declared in this scope
         scanf("%I64d%I64d%I64d%I64d%I64d%I64d%I64d",&n,&m,&k,&p,&q,&r,&mod);
                                                         ^
0_0_25571064_9512.cpp:13:60: error: 'k' was not declared in this scope
         scanf("%I64d%I64d%I64d%I64d%I64d%I64d%I64d",&n,&m,&k,&p,&q,&r,&mod);
                                                            ^
0_0_25571064_9512.cpp:13:63: error: 'p' was not declared in this scope
         scanf("%I64d%I64d%I64d%I64d%I64d%I64d%I64d",&n,&m,&k,&p,&q,&r,&mod);
                                                               ^
0_0_25571064_9512.cpp:13:66: error: 'q' was not declared in this scope
         scanf("%I64d%I64d%I64d%I64d%I64d%I64d%I64d",&n,&m,&k,&p,&q,&r,&mod);
                                                                  ^
0_0_25571064_9512.cpp:13:69: error: 'r' was not declared in this scope
         scanf("%I64d%I64d%I64d%I64d%I64d%I64d%I64d",&n,&m,&k,&p,&q,&r,&mod);
                                                                     ^
0_0_25571064_9512.cpp:13:72: error: 'mod' was not declared in this scope
         scanf("%I64d%I64d%I64d%I64d%I64d%I64d%I64d",&n,&m,&k,&p,&q,&r,&mod);
                                                                        ^
0_0_25571064_9512.cpp:14:12: error: expected ';' before 'maxn'
         ll maxn=0;
            ^
0_0_25571064_9512.cpp:15:12: error: expected ';' before 'pos'
         ll pos=0;
            ^
0_0_25571064_9512.cpp:16:12: error: expected ';' before 'ans1'
         ll ans1=0,ans2=0;
            ^
0_0_25571064_9512.cpp:17:12: error: expected ';' before 'i'
         ll i;
            ^
0_0_25571064_9512.cpp:18:13: error: 'i' was not declared in this scope
         for(i=1;i<=k;i++)
             ^
0_0_25571064_9512.cpp:19:28: error: 'num' was not declared in this scope
             scanf("%I64d",&num[i]);
                            ^
0_0_25571064_9512.cpp:20:13: error: 'i' was not declared in this scope
         for(i=i+1;i<=n;i++)
             ^
0_0_25571064_9512.cpp:21:13: error: 'num' was not declared in this scope
             num[i]=(ll(num[i-1]*p+q*i+r))%mod;
             ^
0_0_25571064_9512.cpp:22:9: error: 'pos' was not declared in this scope
         pos=n-m+1;
         ^
0_0_25571064_9512.cpp:23:15: error: the value of 'll' is not usable in a constant expression
         deque<ll>ls;
               ^
0_0_25571064_9512.cpp:12:9: note: 'll' was not declared 'constexpr'
         ll n,m,k,p,q,r,mod;
         ^
0_0_25571064_9512.cpp:23:17: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::deque'
         deque<ll>ls;
                 ^
0_0_25571064_9512.cpp:23:17: error:   expected a type, got 'll'
0_0_25571064_9512.cpp:23:17: error: template argument 2 is invalid
0_0_25571064_9512.cpp:23:20: error: invalid type in declaration before ';' token
         deque<ll>ls;
                    ^
0_0_25571064_9512.cpp:24:13: error: 'i' was not declared in this scope
         for(i=n;i>=n-m+1;i--)
             ^
0_0_25571064_9512.cpp:26:19: error: request for member 'empty' in 'ls', which is of non-class type 'int'
             if(ls.empty())
                   ^
0_0_25571064_9512.cpp:27:20: error: request for member 'push_back' in 'ls', which is of non-class type 'int'
                 ls.push_back(num[i]);
                    ^
0_0_25571064_9512.cpp:27:30: error: 'num' was not declared in this scope
                 ls.push_back(num[i]);
                              ^
0_0_25571064_9512.cpp:30:27: error: request for member 'empty' in 'ls', which is of non-class type 'int'
                 while(!ls.empty()&&num[i]>ls.front())ls.pop_front();
                           ^
0_0_25571064_9512.cpp:30:36: error: 'num' was not declared in this scope
                 while(!ls.empty()&&num[i]>ls.front())ls.pop_front();
                                    ^
0_0_25571064_9512.cpp:30:46: error: request for member 'front' in 'ls', which is of non-class type 'int'
                 while(!ls.empty()&&num[i]>ls.front())ls.pop_front();
                                              ^
0_0_25571064_9512.cpp:30:57: error: request for member 'pop_front' in 'ls', which is of non-class type 'int'
                 while(!ls.empty()&&num[i]>ls.front())ls.pop_front();
                                                         ^
0_0_25571064_9512.cpp:31:20: error: request for member 'push_front' in 'ls', which is of non-class type 'int'
                 ls.push_front(num[i]);
                    ^
0_0_25571064_9512.cpp:31:31: error: 'num' was not declared in this scope
                 ls.push_front(num[i]);
                               ^
0_0_25571064_9512.cpp:34:9: error: 'maxn' was not declared in this scope
         maxn=ls.back();
         ^
0_0_25571064_9512.cpp:34:17: error: request for member 'back' in 'ls', which is of non-class type 'int'
         maxn=ls.back();
                 ^
0_0_25571064_9512.cpp:35:9: error: 'ans1' was not declared in this scope
         ans1=maxn^pos;
         ^
0_0_25571064_9512.cpp:36:9: error: 'ans2' was not declared in this scope
         ans2=ls.size()^pos;
         ^
0_0_25571064_9512.cpp:36:17: error: request for member 'size' in 'ls', which is of non-class type 'int'
         ans2=ls.size()^pos;
                 ^
0_0_25571064_9512.cpp:37:13: error: 'i' was not declared in this scope
         for(i=n-1;i>=m;i--)
             ^
0_0_25571064_9512.cpp:39:16: error: 'num' was not declared in this scope
             if(num[i+1]==ls.back())ls.pop_back();
                ^
0_0_25571064_9512.cpp:39:29: error: request for member 'back' in 'ls', which is of non-class type 'int'
             if(num[i+1]==ls.back())ls.pop_back();
                             ^
0_0_25571064_9512.cpp:39:39: error: request for member 'pop_back' in 'ls', which is of non-class type 'int'
             if(num[i+1]==ls.back())ls.pop_back();
                                       ^
0_0_25571064_9512.cpp:40:19: error: request for member 'empty' in 'ls', which is of non-class type 'int'
             if(ls.empty())
                   ^
0_0_25571064_9512.cpp:41:20: error: request for member 'push_back' in 'ls', which is of non-class type 'int'
                 ls.push_back(num[i]);
                    ^
0_0_25571064_9512.cpp:41:30: error: 'num' was not declared in this scope
                 ls.push_back(num[i]);
                              ^
0_0_25571064_9512.cpp:44:27: error: request for member 'empty' in 'ls', which is of non-class type 'int'
                 while(!ls.empty()&&num[i-m+1]>=ls.front())ls.pop_front();
                           ^
0_0_25571064_9512.cpp:44:36: error: 'num' was not declared in this scope
                 while(!ls.empty()&&num[i-m+1]>=ls.front())ls.pop_front();
                                    ^
0_0_25571064_9512.cpp:44:51: error: request for member 'front' in 'ls', which is of non-class type 'int'
                 while(!ls.empty()&&num[i-m+1]>=ls.front())ls.pop_front();
                                                   ^
0_0_25571064_9512.cpp:44:62: error: request for member 'pop_front' in 'ls', which is of non-class type 'int'
                 while(!ls.empty()&&num[i-m+1]>=ls.front())ls.pop_front();
                                                              ^
0_0_25571064_9512.cpp:45:20: error: request for member 'push_front' in 'ls', which is of non-class type 'int'
                 ls.push_front(num[i-m+1]);
                    ^
0_0_25571064_9512.cpp:45:31: error: 'num' was not declared in this scope
                 ls.push_front(num[i-m+1]);
                               ^
0_0_25571064_9512.cpp:48:21: error: request for member 'back' in 'ls', which is of non-class type 'int'
             maxn=ls.back();
                     ^
0_0_25571064_9512.cpp:50:22: error: request for member 'size' in 'ls', which is of non-class type 'int'
             ans2+=ls.size()^pos;
                      ^
0_0_25571064_9512.cpp:52:40: error: 'prllf' was not declared in this scope
         prllf("%I64d %I64d\n",ans1,ans2);
                                        ^


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 06:46:18, Gzip enabled