Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
133059 王奕杰 11加密规则 C++ Compile Error 0 MS 0 KB 571 2025-10-13 19:45:25

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,d,e,f,b1,c1,d1,e1,f1,n; char a1 a=m/100000; b=m/10000%10000; c=m/1000%1000; d=m/100%100; e=m/10%10; f=m/10; a1=a+'A'; b1=b; if(c1%2=0) b1/=2; c1=(b+c+d)%10; d1=d; ei=(e+'l'+'e')/10%10; f1=(a+b+c+d+e+f)%10; cout<<a1<<c1<<d1<<e1<<f1; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:4: error: expected initializer before 'a'
    a=m/100000;
    ^
Main.cc:11:6: error: 'm' was not declared in this scope
    b=m/10000%10000;
      ^
Main.cc:16:3: error: 'a1' was not declared in this scope
   a1=a+'A';
   ^
Main.cc:18:10: error: lvalue required as left operand of assignment
   if(c1%2=0)
          ^
Main.cc:22:3: error: 'ei' was not declared in this scope
   ei=(e+'l'+'e')/10%10;
   ^
Main.cc:8:35: warning: unused variable 'n' [-Wunused-variable]
    int a,b,c,d,e,f,b1,c1,d1,e1,f1,n;
                                   ^