CPP CODE
Code\n\nclass Solution {\npublic:\n    vector<int> circularGameLosers(int n, int k) {\n        vector<int>ans(n,1);\n        vector<int>ans2;\n        int i=2;\
# Code\n```\nclass Solution {\npublic:\n    vector<int> circularGameLosers(int n, int k) {\n        vector<int>ans(n,1);\n        vector<int>ans2;\n        int i=2;\n        ans[0]=0;\n        int first=0,temp=k;\n       \n        while(true)\n        {\n            \n            first=(first+temp)%n;\n            if(ans[first]==0) break;\n            else\n            {\n\n            ans[first]=0;\n            temp=k*i;\n            i++;\n            }\n        }\n        for(int j=0;j<ans.size();j++)\n        {\n            if(ans[j]==1) {ans2.push_back(j+1);}\n        }\n        return ans2;\n        \n    }\n};\n\n```
['C++']