func_code_string: #include <bits/stdc++.h>   using namespace std;   using ll = long long;   const int mod = 1e9 + 7;   const int sz = 1e5 + 10;   int main() {     int n, x;     set<int> ans, st, ha;     while (cin >> n) {       ans.clear();       st.clear();       for (int i = 0; i < n; i++) {         ha.clear();         cin >> x;         ha.insert(x);         ans.insert(x);         for (int xx : st) {           ha.insert(x | xx);           ans.insert(x | xx);         }         st = ha;       }       cout << ans.size() <<   n ;     }     return 0;   }   