0_0_27742178_3320.cpp: In function 'int main()': 0_0_27742178_3320.cpp:31:53: error: 'minh' was not declared in this scope if( limit[j]>=a[i] && limit[j]-a[i]<minh ) { flag=true; pick=j; break; } ^