Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
124751 陈梓钒 字符的前导值和后继值 C++ Compile Error 0 MS 0 KB 189 2025-07-12 12:08:19

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ char n; n=getchar(); if(n-1>=32 && c-1<=126){ cout<<c-1<<endl; } else{ cout<<"Input Error!"; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:16: error: 'c' was not declared in this scope
  if(n-1>=32 && c-1<=126){
                ^