0_0_20100034_19086.cpp: In function 'int main()': 0_0_20100034_19086.cpp:128:9: error: 'ans' was not declared in this scope ans=n*(m-1)+(n-1)*m-ans; ^