0_0_25797024_17129.cpp: In function 'int main()': 0_0_25797024_17129.cpp:534:18: error: 'k' was not declared in this scope ans = dp[k]; ^