社区讨论
I have a problem.
学术版参与者 13已保存回复 25
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 25 条
- 当前快照
- 1 份
- 快照标识符
- @lo8duvtg
- 此快照首次捕获于
- 2023/10/27 17:00 2 年前
- 此快照最后确认于
- 2023/10/27 17:00 2 年前
Why is this code compiled error?
There is no problem with local compilation, but why do compilation errors occur after submission?
CPP#include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
int k;
cin >> s >> k;
int l=s.length();
for (int i=0;i<l;i++)
cout << char((s[i]+k-65)%26+65);
cout << endl;
return 0;
}
回复
共 25 条回复,欢迎继续交流。
正在加载回复...