0_0_36312111_6813.cpp: In function 'int ans(int, int)': 0_0_36312111_6813.cpp:15:29: error: 'W' was not declared in this scope for(int j = 0; j <= W; ++j){ ^ 0_0_36312111_6813.cpp:20:18: error: 'W' was not declared in this scope return dp[n][W]; ^