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