0_0_18380720_11902.cpp:4:7: error: 'll' does not name a type
const ll maxx = 100;
^
0_0_18380720_11902.cpp:6:7: error: 'maxx' was not declared in this scope
ll dp[maxx][maxx];
^
0_0_18380720_11902.cpp:6:13: error: 'maxx' was not declared in this scope
ll dp[maxx][maxx];
^
0_0_18380720_11902.cpp:8:6: error: 'maxx' was not declared in this scope
ll w[maxx],v[maxx];
^
0_0_18380720_11902.cpp:8:14: error: 'maxx' was not declared in this scope
ll w[maxx],v[maxx];
^
0_0_18380720_11902.cpp: In function 'll rec(ll, ll)':
0_0_18380720_11902.cpp:11:5: error: 'dp' was not declared in this scope
if(dp[num][wmaxx]>0){
^
0_0_18380720_11902.cpp:18:10: error: 'w' was not declared in this scope
else if(w[num]>wmaxx){
^
0_0_18380720_11902.cpp:22:54: error: 'v' was not declared in this scope
res=max(rec(num+1,wmaxx), (rec(num+1,wmaxx-w[num])+v[num]));
^
0_0_18380720_11902.cpp:24:9: error: 'dp' was not declared in this scope
return dp[num][wmaxx] = res;
^
0_0_18380720_11902.cpp: In function 'int main(int, const char**)':
0_0_18380720_11902.cpp:32:18: error: 'w' was not declared in this scope
scanf("%d%d",&w[i],&v[i]);
^
0_0_18380720_11902.cpp:32:24: error: 'v' was not declared in this scope
scanf("%d%d",&w[i],&v[i]);
^
0_0_18380720_11902.cpp:34:25: error: 'prllf' was not declared in this scope
prllf("%d\n",rec(0,wm));
^
|