Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
102545 | 晏莞煜 | 09判断ASCLL码 | C++ | Compile Error | 0 MS | 0 KB | 291 | 2024-12-22 08:58:06 |
#include <iostream> using namespace std; int main(){ char a; cin>>a; if(a>='A' and a<='B'){ cout<<"Upper Letter"; }else if(a>=a and a<=z){ cout<<"Lower Letter"; }else if(a>=0 and a<=9){ cout<<"Digital"; }else{ cout<<"other"; } return 0; }
Main.cc: In function 'int main()': Main.cc:8:23: error: 'z' was not declared in this scope }else if(a>=a and a<=z){ ^