0_0_22129854_24007.cpp: In function 'int main()': 0_0_22129854_24007.cpp:48:37: error: 'ans' was not declared in this scope dp[i][j/3+9*q]=(ans+dp[i-1][j]*w[q])%mod; ^