0_0_26823914_12381.cpp:1:3: error: stray '#' in program
! #include<bits/stdc++.h>
^
0_0_26823914_12381.cpp:1:1: error: expected unqualified-id before '!' token
! #include<bits/stdc++.h>
^
0_0_26823914_12381.cpp:9:2: error: 'vector' does not name a type
vector<xjy > s;
^
0_0_26823914_12381.cpp: In function 'int main()':
0_0_26823914_12381.cpp:14:18: error: 'scanf' was not declared in this scope
scanf("%lld",&t);
^
0_0_26823914_12381.cpp:19:4: error: 's' was not declared in this scope
s.clear();
^
0_0_26823914_12381.cpp:20:26: error: 'memset' was not declared in this scope
memset(dp,0,sizeof(dp));
^
0_0_26823914_12381.cpp:27:22: error: 'max' was not declared in this scope
ans=max(ans,mid.v);
^
0_0_26823914_12381.cpp:37:64: error: 'max' was not declared in this scope
dp[i+1][2*m][k]=max(dp[i+1][2*m][k],dp[i][j][k-1]+s[i].v);
^
0_0_26823914_12381.cpp:42:76: error: 'max' was not declared in this scope
dp[i+1][j+2*s[i].w][k]=max(dp[i+1][j+2*s[i].w][k],dp[i][j][k]+s[i].v);
^
0_0_26823914_12381.cpp:48:39: error: 'printf' was not declared in this scope
printf("Case #%lld: %lld\n",cnt,ans);
^
|