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