func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(false);     cin.tie(NULL);     int onexor = 0;     bool ok = true;     long long s, x;     cin >> s >> x;     for (int i = 40; i >= 0; i--) {       if (s & (1LL << i)) {         if (x & (1LL << i)) {           continue;         } else {           bool foun = false;           for (int j = i - 1; j >= 0; j--) {             if (!(x & (1LL << j))) {               foun = true;               i = j + 1;               break;             }             if (s & (1LL << (j))) {               ok = false;               break;             }           }           if (!foun) {             ok = false;             break;           }         }       } else if (x & (1LL << i)) {         ok = false;       }     }     long long ans = 1LL;     for (int i = 40; i >= 0; i--) {       if (x & (1LL << i)) {         ans = ans * 2LL;       }     }     if (x == s) ans -= 2LL;     if (ok) {       cout << ans << endl;     } else       cout << 0 << endl;     cin >> s;   }   