• + 0 comments

    C++

    char zeroMoveNim(vector<int> p) {
        int xr = 0;
        for(auto n : p) xr ^= n + ((n&1)<<1) - 1;
        return xr ? 'W' : 'L';   
    }
    

    In the text of C++ program next error strings should be commented or deleted otherwise the program will abort

    string n_temp;
    getline(cin, n_temp);
    int n = stoi(ltrim(rtrim(n_temp)));