Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
95135 陈治宸 03输出字符序号 C++ Compile Error 0 MS 0 KB 136 2024-10-26 22:07:38

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ char c1; char c2(=c1-65); cin>>c1; cout<<c1; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:13: error: expected primary-expression before '=' token
     char c2(=c1-65);
             ^
Main.cc:5:10: warning: unused variable 'c2' [-Wunused-variable]
     char c2(=c1-65);
          ^