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_34078694_23271.cpp:7:8: error: 'll' was not declared in this scope
 vector<ll> duan;
        ^
0_0_34078694_23271.cpp:7:10: error: template argument 1 is invalid
 vector<ll> duan;
          ^
0_0_34078694_23271.cpp:7:10: error: template argument 2 is invalid
0_0_34078694_23271.cpp:7:16: error: invalid type in declaration before ';' token
 vector<ll> duan;
                ^
0_0_34078694_23271.cpp:8:1: error: 'll' does not name a type
 ll n,s,m,k;
 ^
0_0_34078694_23271.cpp:10:1: error: 'll' does not name a type
 ll MaxSum(vector<ll> vt,int len)
 ^
0_0_34078694_23271.cpp:28:1: error: 'll' does not name a type
 ll F(vector<ll> vt,int m)
 ^
0_0_34078694_23271.cpp: In function 'int main()':
0_0_34078694_23271.cpp:46:35: error: 'n' was not declared in this scope
         scanf("%lld%lld%lld%lld",&n,&s,&m,&k);
                                   ^
0_0_34078694_23271.cpp:46:38: error: 's' was not declared in this scope
         scanf("%lld%lld%lld%lld",&n,&s,&m,&k);
                                      ^
0_0_34078694_23271.cpp:46:41: error: 'm' was not declared in this scope
         scanf("%lld%lld%lld%lld",&n,&s,&m,&k);
                                         ^
0_0_34078694_23271.cpp:46:44: error: 'k' was not declared in this scope
         scanf("%lld%lld%lld%lld",&n,&s,&m,&k);
                                            ^
0_0_34078694_23271.cpp:48:27: error: 'gcd' was not declared in this scope
         int loop=n/gcd(n,k);
                           ^
0_0_34078694_23271.cpp:49:9: error: 'll' was not declared in this scope
         ll ans=0;
         ^
0_0_34078694_23271.cpp:53: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_34078694_23271.cpp:57:22: error: request for member 'push_back' in 'duan', which is of non-class type 'int'
                 duan.push_back(a[j]);
                      ^
0_0_34078694_23271.cpp:59:13: error: 'ans' was not declared in this scope
             ans=max(ans,F(duan,m));
             ^
0_0_34078694_23271.cpp:59:33: error: 'F' was not declared in this scope
             ans=max(ans,F(duan,m));
                                 ^
0_0_34078694_23271.cpp:60:18: error: request for member 'clear' in 'duan', which is of non-class type 'int'
             duan.clear();
                  ^
0_0_34078694_23271.cpp:64:12: error: 'ans' was not declared in this scope
         if(ans>=s) ans=0;
            ^
0_0_34078694_23271.cpp:66: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:43:06, Gzip enabled