| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 61185 | vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv | 字符的前导值和后继值 | C++ | Compile Error | 0 MS | 0 KB | 230 | 2023-12-02 17:22:05 |
#include<iostream> #include<cstdio> using namespace std; int main(){ char a; cin.get()>>a; cout<<a(int); if((a(int)+1>=126||a(int)-1>=126||a(int)-1<=32||a(int)+1<=32)){ cout<<"Input Error!"; } return 0; }
Main.cc: In function 'int main()':
Main.cc:7:11: warning: value computed is not used [-Wunused-value]
cin.get()>>a;
^
Main.cc:8:10: error: expected primary-expression before 'int'
cout<=126||a(int)-1>=126||a(int)-1<=32||a(int)+1<=32)){
^
Main.cc:9:11: error: 'a' cannot be used as a function
if((a(int)+1>=126||a(int)-1>=126||a(int)-1<=32||a(int)+1<=32)){
^
Main.cc:9:23: error: expected primary-expression before 'int'
if((a(int)+1>=126||a(int)-1>=126||a(int)-1<=32||a(int)+1<=32)){
^
Main.cc:9:26: error: 'a' cannot be used as a function
if((a(int)+1>=126||a(int)-1>=126||a(int)-1<=32||a(int)+1<=32)){
^
Main.cc:9:38: error: expected primary-expression before 'int'
if((a(int)+1>=126||a(int)-1>=126||a(int)-1<=32||a(int)+1<=32)){
^
Main.cc:9:41: error: 'a' cannot be used as a function
if((a(int)+1>=126||a(int)-1>=126||a(int)-1<=32||a(int)+1<=32)){
^
Main.cc:9:52: error: expected primary-expression before 'int'
if((a(int)+1>=126||a(int)-1>=126||a(int)-1<=32||a(int)+1<=32)){
^
Main.cc:9:55: error: 'a' cannot be used as a function
if((a(int)+1>=126||a(int)-1>=126||a(int)-1<=32||a(int)+1<=32)){
^