0_0_30249235_28592.cpp: In function 'int main()': 0_0_30249235_28592.cpp:11:9: error: 'ans' was not declared in this scope ans=k*(m+1); ^