Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
2583 | 张宸瑜 | 字符的前导值和后继值 | C++ | Compile Error | 0 MS | 0 KB | 275 | 2024-01-13 18:08:18 |
# include<iostream> # include<cstdio> # include<iomanip> # include<> using namespace std; int main(){ char ch; cin>>ch.get(); if((int)(ch)<=126){ cout<<(int)(ch); } else { cout<<"Input Error!"; } return 0; }
Main.cc:4:10: error: empty filename in #include # include< ^ Main.cc: In function 'int main()': Main.cc:8:13: error: request for member 'get' in 'ch', which is of non-class type 'char' cin>>ch.get(); ^