Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
61152 vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv 字符类型 C++ Compile Error 0 MS 0 KB 513 2023-12-02 16:46:59

Tests(0/0):


Code:

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


Run Info:

Main.cc:15:94: warning: missing terminating " character
   cout<<"Upper Vowel";                                                                       "
                                                                                              ^
Main.cc:15:3: error: missing terminating " character
   cout<<"Upper Vowel";                                                                       "
   ^
Main.cc: In function 'int main()':
Main.cc:8:13: error: expected primary-expression before '>=' token
  if(a<='Z'&&>='A'){
             ^