func_code_string: #include <bits/stdc++.h>   int abs(int x) { return x > 0 ? x : -x; }   int max(int x, int y) { return x > y ? x : y; }   int min(int x, int y) { return x < y ? x : y; }   long long read() {     long long ans = 0;     char ch = getchar(), t = ch;     while (ch <  0  || ch >  9 ) {       t = ch;       ch = getchar();     }     while (ch >=  0  && ch <=  9 ) {       ans = ans * 10 + ch -  0 ;       ch = getchar();     }     if (t ==  - ) ans = -ans;     return ans;   }   using namespace std;   int main() {     long long n = read();     while (n--) {       long long l = read(), r = read();       long long bit = 0;       if (l == 0 && r == 0) {         printf( 0 n );         continue;       }       while ((1ll * 1 << bit) <= r) {         if ((l | (1ll * 1 << bit)) > r) {           printf( %I64d n , l);           break;         }         if ((l | (1ll * 1 << bit)) == r) {           printf( %I64d n , l | (1ll * 1 << bit));           break;         }         l = l | (1ll * 1 << bit);         bit++;       }     }     return 0;   }   