0_0_36244686_12420.cpp:7:14: error: declaration does not declare anything [-fpermissive]
typedef long long;
^
0_0_36244686_12420.cpp:10:1: error: 'll' does not name a type
ll v[N],w[N];
^
0_0_36244686_12420.cpp:11:1: error: 'll' does not name a type
ll f[N][N];
^
0_0_36244686_12420.cpp: In function 'int main()':
0_0_36244686_12420.cpp:20:16: error: 'f' was not declared in this scope
memset(f,0,sizeof f);
^
0_0_36244686_12420.cpp:22:36: error: 'v' was not declared in this scope
for(int i=1;i<=n;i++) cin>>v[i]>>w[i];
^
0_0_36244686_12420.cpp:22:42: error: 'w' was not declared in this scope
for(int i=1;i<=n;i++) cin>>v[i]>>w[i];
^
0_0_36244686_12420.cpp:31:27: error: 'v' was not declared in this scope
if(j>=v[i])
^
0_0_36244686_12420.cpp:32:60: error: 'w' was not declared in this scope
f[i][j]=max(f[i][j],f[i-1][j-v[i]]+w[i]);
^
|