Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
124691 晏莞煜 字符类型 C++ Compile Error 0 MS 0 KB 476 2025-07-12 11:22:30

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ char a; cin>>a; if(a>='A' and a<='Z'){ if(a=='A' or a=='E' or a=='I' or a=='O' or a=='U'){ cout<<"Upper Vowel"; }else{ cout<<"Upper Letter"; } } if(a>='a' and a<='z'){ if(a=='a' or a=='e' or a=='i' or a=='o' or a=='u'){ cout<<"Lower Letter"; }else{ cout<<"Lower Letter"; } if(a<='9' or a>='0'){ cout<<"Digit"; }else{ cout<<"Other"; } } } } }


Run Info:

Main.cc:26:2: error: expected declaration before '}' token
  }
  ^