0_0_24419050_6510.cpp: In function 'int main()': 0_0_24419050_6510.cpp:58:3: error: 'ans' was not declared in this scope ans=sum*2-f[m][k]; ^