Problem laughter
User Potato3218
Submission Time 2023-12-08 01:19:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

laughter.cpp: In function ‘int main()’:
laughter.cpp:6:17: error: expected ‘)’ before ‘+’ token
6 | #define mid ((s + e)>>1)
| ~ ^
laughter.cpp:151:27: note: in expansion of macro ‘mid’
151 | int lb = 0, ub = 1e9, mid = 5e8;
| ^~~
laughter.cpp:6:17: error: expected ‘)’ before ‘+’ token
6 | #define mid ((s + e)>>1)
| ~ ^
laughter.cpp:151:27: note: in expansion of macro ‘mid’
151 | int lb = 0, ub = 1e9, mid = 5e8;
| ^~~
laughter.cpp:6:15: error: ‘s’ was not declared in this scope
6 | #define mid ((s + e)>>1)
| ^
laughter.cpp:154:9: note: in expansion of macro ‘mid’
154 | mid = (lb + ub) /2;
| ^~~
laughter.cpp:6:19: error: ‘e’ was not declared in this scope
6 | #define mid ((s + e)>>1)
| ^
laughter.cpp:1