Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
100067 大王老师 11加密规则 C++ Compile Error 0 MS 0 KB 534 2024-12-01 15:22:45

Tests(0/0):


Code:

#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(){ int a,b,c,e,f,B,C,D,E,F; char A; scanf("%1d%1d%1d%1d%1d%1d",&a,&b,&c,&d,&e,&f); A=a+65; B=b; if(b%2==0) B=b/2; C=(a+b+c)%10; D=d; E=('l'+'e'+e)%100/10; F=(a+b+c+d+e+f)%10; cout<<A<<B<<C<<D<<E<<F<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:42: error: 'd' was not declared in this scope
     scanf("%1d%1d%1d%1d%1d%1d",&a,&b,&c,&d,&e,&f);
                                          ^