C++ using vector
```\n#define ull unsigned long long\nclass Solution {\npublic:\n    vector binary(int n){\n        vector bin;\n        int temp=0;\n        while(n>0){\n      
```\n#define ull unsigned long long\nclass Solution {\npublic:\n    vector<int> binary(int n){\n        vector<int> bin;\n        int temp=0;\n        while(n>0){\n            int rem = n%2;\n            bin.push_back(rem);\n            n/=2;\n        }\n        reverse(bin.begin(),bin.end());\n        return bin;\n    }\n    \n    int bitwiseComplement(int n) {\n        if(n==0) return 1;\n        vector<int> bin = binary(n);\n        for(auto &it:bin){\n            if(it==0) it=1;\n            else it=0;\n        }\n        int k = bin.size();\n        ull sum=0;\n        int l=k;\n        for(int i=0;i<k;i++){\n            sum+=pow(2,(l-1))*bin[i];\n            l--;\n        }\n        return sum;\n    }\n};
['C', 'C++']