0_0_33073751_880.cpp: In function 'int main()': 0_0_33073751_880.cpp:86:13: error: 'ok' was not declared in this scope if(ok(mid)) ans = mid , r = mid - 1 ; ^