0_0_22452637_1917.cpp:36:1: error: missing terminating ' character
cout<<"point"<<a.x<<'
^
0_0_22452637_1917.cpp:38:1: error: missing terminating ' character
'<<right<<endl;
^
0_0_22452637_1917.cpp: In function 'int search(SEG*, POINT, int)':
0_0_22452637_1917.cpp:39:4: error: expected ';' before 'int'
int left=0;
^
0_0_22452637_1917.cpp:41:3: error: invalid operands of types 'std::ios_base& (*)(std::ios_base&)' and 'int' to binary 'operator/'
/ 2;
^
0_0_22452637_1917.cpp:43:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
while(left+1 < right ){
^
0_0_22452637_1917.cpp:55:5: error: assignment of function 'std::ios_base& std::left(std::ios_base&)'
left=mid;
^
0_0_22452637_1917.cpp:55:5: error: cannot convert 'int' to 'std::ios_base&(std::ios_base&)' in assignment
0_0_22452637_1917.cpp:56:24: error: invalid operands of types 'std::ios_base& (*)(std::ios_base&)' and 'int' to binary 'operator/'
mid=( left + right ) / 2;
^
0_0_22452637_1917.cpp:62:24: error: invalid operands of types 'std::ios_base& (*)(std::ios_base&)' and 'int' to binary 'operator/'
mid=( left + right ) / 2;
^
|