0_0_21961314_17836.cpp: In function 'int main()': 0_0_21961314_17836.cpp:31:17: error: 'mid' was not declared in this scope mid=(l+r)/2; ^