| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81336 | 石晋骁 | 字符的前导值和后继值 | C++ | Compile Error | 0 MS | 0 KB | 201 | 2024-07-12 11:39:24 |
#include<bits/stdc++.h> using namespace std; int main(){ int b; char a; cin >> a; b = a; cout << b-1; if(b+1 > 126){ cout << "InputError!" }else{ cout << b+1; } return 0; }
Main.cc: In function 'int main()':
Main.cc:11:2: error: expected ';' before '}' token
}else{
^