0_0_32104853_17329.cpp: In function 'int main()': 0_0_32104853_17329.cpp:37:14: error: 'mid' was not declared in this scope ans=cost[mid]; ^ 0_0_32104853_17329.cpp:39:11: error: 'mid' was not declared in this scope ans=p[mid-1]*q; ^