Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
134020 刘益梵 字符类型 C++ Compile Error 0 MS 0 KB 465 2025-10-25 14:23:36

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:20: error: 'b' was not declared in this scope
         if(a=='A'||b=='E'||c=='I'||d=='O'||e=='U') cout<<"Upper Vowel";
                    ^
Main.cc:8:28: error: 'c' was not declared in this scope
         if(a=='A'||b=='E'||c=='I'||d=='O'||e=='U') cout<<"Upper Vowel";
                            ^
Main.cc:8:36: error: 'd' was not declared in this scope
         if(a=='A'||b=='E'||c=='I'||d=='O'||e=='U') cout<<"Upper Vowel";
                                    ^
Main.cc:8:44: error: 'e' was not declared in this scope
         if(a=='A'||b=='E'||c=='I'||d=='O'||e=='U') cout<<"Upper Vowel";
                                            ^
Main.cc:11:20: error: 'b' was not declared in this scope
         if(a=='a'||b=='e'||c=='i'||d=='o'||e=='u') cout<<"Lower Vowel"; 
                    ^
Main.cc:11:28: error: 'c' was not declared in this scope
         if(a=='a'||b=='e'||c=='i'||d=='o'||e=='u') cout<<"Lower Vowel"; 
                            ^
Main.cc:11:36: error: 'd' was not declared in this scope
         if(a=='a'||b=='e'||c=='i'||d=='o'||e=='u') cout<<"Lower Vowel"; 
                                    ^
Main.cc:11:44: error: 'e' was not declared in this scope
         if(a=='a'||b=='e'||c=='i'||d=='o'||e=='u') cout<<"Lower Vowel"; 
                                            ^