0_0_23755200_26001.cpp: In function 'int main()': 0_0_23755200_26001.cpp:40:26: error: 'tmp' was not declared in this scope ans=min(ans,tmp); ^