Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
102501 | 唐俊逸 | 06字符后移 | C++ | Compile Error | 0 MS | 0 KB | 420 | 2024-12-21 18:13:28 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ char a,b,c,d; cin>>a>>b>>c>>d; a=(a+1-"a")%26+a b=(b+1-"b")%26+b c=(c+1-"c")%26+c d=(d+1-"d")%26+d cout<<a<<b<<c<<d; return 0; }
Main.cc: In function 'int main()': Main.cc:10:12: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator-' a=(a+1-"a")%26+a ^