/in/foo.cc:3:11: error: uninitialized 'const N3505' [-fpermissive]
3 | int const N3505;
| ^~~~~
/in/foo.cc:4:11: error: 'N' was not declared in this scope
4 | int n,V,w[N],v[N];//w:weight v:value
| ^
/in/foo.cc:4:16: error: 'N' was not declared in this scope
4 | int n,V,w[N],v[N];//w:weight v:value
| ^
/in/foo.cc:5:8: error: 'N' was not declared in this scope
5 | int dp[N][13005];
| ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:11:22: error: 'w' was not declared in this scope
11 | cin>>w[i]>>v[i];
| ^
/in/foo.cc:11:28: error: 'v' was not declared in this scope
11 | cin>>w[i]>>v[i];
| ^
/in/foo.cc:16:20: error: 'w' was not declared in this scope
16 | if(w[i]>j)dp[i][j]=dp[i-1][j];
| ^
/in/foo.cc:16:27: error: 'dp' was not declared in this scope; did you mean 'dup'?
16 | if(w[i]>j)dp[i][j]=dp[i-1][j];
| ^~
| dup
/in/foo.cc:17:22: error: 'dp' was not declared in this scope; did you mean 'dup'?
17 | else dp[i][j]=max(dp[i-1][j],dp[i-1][j-w[i]]+v[i]);
| ^~
| dup
/in/foo.cc:17:62: error: 'v' was not declared in this scope
17 | else dp[i][j]=max(dp[i-1][j],dp[i-1][j-w[i]]+v[i]);
| ^
/in/foo.cc:19:15: error: 'dp' was not declared in this scope; did you mean 'dup'?
19 | cout<<dp[n][V];
| ^~
| dup