0_0_30540261_4180.cpp: In function 'bool ok(int)':
0_0_30540261_4180.cpp:49:1: error: expected primary-expression before '}' token
}
^
0_0_30540261_4180.cpp: In function 'int main()':
0_0_30540261_4180.cpp:7:15: error: expected ')' before '+' token
#define mid (l+r)/2
^
0_0_30540261_4180.cpp:62:23: note: in expansion of macro 'mid'
int l=1,r=cnt,mid,ans;
^
0_0_30540261_4180.cpp:64:16: error: lvalue required as left operand of assignment
mid=(l+r)/2;
^
0_0_30540261_4180.cpp:65:24: error: 'ans' was not declared in this scope
if(ok(mid))ans=mid,r=mid-1;
^
0_0_30540261_4180.cpp:68:27: error: 'ans' was not declared in this scope
printf("%d\n",lsx[ans]);
^
|