找了好久看不出错哪
#include <bits/stdc++.h>
using namespace std;
int main()
{
string i;
cin >> i;
int x;
x = i[0] + i[2] * 2 + i[3] * 3 + i[4] * 4 + i[6] * 5 + i[7] * 6 + i[8] * 7 + i[9] * 8 + i[10] * 9;
x = x % 11;
if (i[12] == x || i[12] == 'X' && x == 10)
cout << "Right" << endl;
else
{
for (int l = 0; l <= 11; l++)
cout << i[l];
if (x == 10)
cout << "X" << endl;
else
cout << x << endl;
}
return 0;
}