Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
8217 刘东强 11加密规则 C++ Compile Error 0 MS 0 KB 330 2025-06-19 20:10:13

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int a,b,c,d,e,f; cin>>a; cin>>b; cin>>c; cin>>d; cin>>e; cin>>f; f=(a+b+c+d+e+f)%10; c=(a+b+c)%10; (char)a=a+65; if(b%2==0){ b=b/2 } e=((107+102+e)/10)%10; cout<<a<<b<<c<<d<<e<<f; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:13:12: error: lvalue required as left operand of assignment
     (char)a=a+65;
            ^
Main.cc:16:5: error: expected ';' before '}' token
     }
     ^