Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
95919 | 毛靖平 | 06字符后移 | C++ | Compile Error | 0 MS | 0 KB | 235 | 2024-11-02 14:47:37 |
#include<iostream> using namespace std; int main(){ char a,b,c,d; cin>>a>>b>>c>>d; a=char((a+1-97)%26+97; b=char((b+1-97)%26+97; c=char((c+1-97)%26+97; d=char((d+1-97)%26+97; cout<<a<<b<<c<<d; }
Main.cc: In function 'int main()': Main.cc:6:7: error: expected primary-expression before 'char' a=char((a+1-97)%26+97; ^ Main.cc:7:7: error: expected primary-expression before 'char' b=char((b+1-97)%26+97; ^ Main.cc:8:7: error: expected primary-expression before 'char' c=char((c+1-97)%26+97; ^ Main.cc:9:7: error: expected primary-expression before 'char' d=char((d+1-97)%26+97; ^