| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 124743 | 田子熙 | 字符的前导值和后继值 | C++ | Compile Error | 0 MS | 0 KB | 234 | 2025-07-12 11:58:19 |
#include<bits/stdc++.h> using namespace std; long long a[105]; int main(){ char a; a=getchar; (int) (a); if(a-1>=32 || c-1<=126){ cout<<c-1<<endl; return 0; }else{ cout<<"Input Error!"<<endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:6:3: error: invalid conversion from 'int (*)()' to 'char' [-fpermissive]
a=getchar;
^
Main.cc:7:11: warning: statement has no effect [-Wunused-value]
(int) (a);
^
Main.cc:8:16: error: 'c' was not declared in this scope
if(a-1>=32 || c-1<=126){
^