0_0_25908600_1312.cpp: In function 'bool ok(P&, P&, double)':
0_0_25908600_1312.cpp:71:1: error: expected primary-expression before '}' token
}
^
0_0_25908600_1312.cpp:71:1: error: expected ';' before '}' token
0_0_25908600_1312.cpp: In function 'double getans(int)':
0_0_25908600_1312.cpp:82:18: error: invalid initialization of reference of type 'P&' from expression of type 'double'
if(ok(mid)){
^
0_0_25908600_1312.cpp:69:6: note: in passing argument 1 of 'bool ok(P&, P&, double)'
bool ok(P& a,P& b, double x){
^
|