Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
124747 | 田子熙 | 字符的前导值和后继值 | C++ | Compile Error | 0 MS | 0 KB | 217 | 2025-07-12 11:59:23 |
#include<bits/stdc++.h> using namespace std; 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:11: warning: statement has no effect [-Wunused-value] (int) (a); ^ Main.cc:7:16: error: 'c' was not declared in this scope if(a-1>=32 || c-1<=126){ ^