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_34078680_26177.cpp:4:7: error: 'maxn' was not declared in this scope
 int a[maxn],vis[maxn];
       ^
0_0_34078680_26177.cpp:4:17: error: 'maxn' was not declared in this scope
 int a[maxn],vis[maxn];
                 ^
0_0_34078680_26177.cpp:5:8: error: 'll' was not declared in this scope
 vector<ll> duan;
        ^
0_0_34078680_26177.cpp:5:10: error: template argument 1 is invalid
 vector<ll> duan;
          ^
0_0_34078680_26177.cpp:5:10: error: template argument 2 is invalid
0_0_34078680_26177.cpp:5:16: error: invalid type in declaration before ';' token
 vector<ll> duan;
                ^
0_0_34078680_26177.cpp:6:1: error: 'll' does not name a type
 ll n,s,m,k;
 ^
0_0_34078680_26177.cpp:8:1: error: 'll' does not name a type
 ll MaxSum(vector<ll> vt,int len)
 ^
0_0_34078680_26177.cpp:26:1: error: 'll' does not name a type
 ll F(vector<ll> vt,int m)
 ^
0_0_34078680_26177.cpp: In function 'int main()':
0_0_34078680_26177.cpp:43:16: error: 'vis' was not declared in this scope
         memset(vis,0,sizeof(vis));
                ^
0_0_34078680_26177.cpp:44:35: error: 'n' was not declared in this scope
         scanf("%lld%lld%lld%lld",&n,&s,&m,&k);
                                   ^
0_0_34078680_26177.cpp:44:38: error: 's' was not declared in this scope
         scanf("%lld%lld%lld%lld",&n,&s,&m,&k);
                                      ^
0_0_34078680_26177.cpp:44:41: error: 'm' was not declared in this scope
         scanf("%lld%lld%lld%lld",&n,&s,&m,&k);
                                         ^
0_0_34078680_26177.cpp:44:44: error: 'k' was not declared in this scope
         scanf("%lld%lld%lld%lld",&n,&s,&m,&k);
                                            ^
0_0_34078680_26177.cpp:45:42: error: 'a' was not declared in this scope
         for(int i=0;i<n;i++) scanf("%d",&a[i]);
                                          ^
0_0_34078680_26177.cpp:46:27: error: 'gcd' was not declared in this scope
         int loop=n/gcd(n,k);
                           ^
0_0_34078680_26177.cpp:47:9: error: 'll' was not declared in this scope
         ll ans=0;
         ^
0_0_34078680_26177.cpp:51:27: error: request for member 'push_back' in 'duan', which is of non-class type 'int'
             vis[i]=1,duan.push_back(a[i]);
                           ^
0_0_34078680_26177.cpp:51:37: error: 'a' was not declared in this scope
             vis[i]=1,duan.push_back(a[i]);
                                     ^
0_0_34078680_26177.cpp:55:22: error: request for member 'push_back' in 'duan', which is of non-class type 'int'
                 duan.push_back(a[j]);
                      ^
0_0_34078680_26177.cpp:57:13: error: 'ans' was not declared in this scope
             ans=max(ans,F(duan,m));
             ^
0_0_34078680_26177.cpp:57:33: error: 'F' was not declared in this scope
             ans=max(ans,F(duan,m));
                                 ^
0_0_34078680_26177.cpp:58:18: error: request for member 'clear' in 'duan', which is of non-class type 'int'
             duan.clear();
                  ^
0_0_34078680_26177.cpp:62:12: error: 'ans' was not declared in this scope
         if(ans>=s) ans=0;
            ^
0_0_34078680_26177.cpp:64:25: error: 'ans' was not declared in this scope
         printf("%lld\n",ans);
                         ^


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 11:46:52, Gzip enabled