Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
102112 | 李佳璟 | 11加密规则 | C++ | Compile Error | 0 MS | 0 KB | 267 | 2024-12-21 12:04:31 |
#include <iostream> using namespace std; int main() { int a,b,c,d,e,f; scanf("%1d%1d%1d%1d%1d%1d",&a&b&c&d&e&f) cout<<char(a+'A') if(b%2==0){ cout<<b/2; } else{ cout<<b; } cout<<(a+b+c)%10; cout<<d; cout<<('l'+'e'+e)/10%10; cout<<(a+b+c+d+e+f)%10; }
Main.cc: In function 'int main()': Main.cc:5:31: error: invalid operands of types 'int*' and 'int' to binary 'operator&' scanf("%1d%1d%1d%1d%1d%1d",&a&b&c&d&e&f) ^ Main.cc:10:1: error: 'else' without a previous 'if' else{ ^