Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
124685 王金檐 字符类型 C++ Compile Error 0 MS 0 KB 358 2025-07-12 11:18:42

Tests(0/0):


Code:

#include <iostream> using namespace std; int main(){ char c; cin>>c; if(c>='A'&&c<='Z'){ if(c=='A'||c=='E'||c=='I'||c=='O'||c=='U'){ cout<<"Upper Vowel"; }else{ cout<<"Upper Letter"; } } else if(c>='a'&&c<='z'){ cout<<"Lower Letter""; }else if(c<=0&&c>=9){ cout<<"Digit"; }else{ cout<<"Other"; } return 0; }


Run Info:

Main.cc:14:23: warning: missing terminating " character
   cout<<"Lower Letter"";
                       ^
Main.cc:14:3: error: missing terminating " character
   cout<<"Lower Letter"";
   ^
Main.cc: In function 'int main()':
Main.cc:15:2: error: expected ';' before '}' token
  }else if(c<=0&&c>=9){
  ^