| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 139262 | 向运淇 | 09判断ASCLL码 | C++ | Compile Error | 0 MS | 0 KB | 308 | 2025-12-06 11:18:42 |
#include<iostream> using namespace std; int main() { char c; cin>>c; if(){ cout<<"Upperletter"<<endl; else if('a'<=c&&c<='z') cout<<"lowerletter"<<endl; else if('0'<=c&&c<='9') cout<<"Digital"<<endl; else cout<<"other"<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:7:8: error: expected primary-expression before ')' token
if(){
^
Main.cc:9:1: error: expected '}' before 'else'
else if('a'<=c&&c<='z')
^