Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
103350 | 罗迎甲 | 字符类型 | C++ | Compile Error | 0 MS | 0 KB | 662 | 2024-12-28 16:17:58 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a; char 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; }
Main.cc: In function 'int main()': Main.cc:10:10: error: conflicting declaration 'char a' char a; ^ Main.cc:8:10: note: previous declaration as 'int a' int a; ^ Main.cc:13:16: error: 'b' was not declared in this scope if(a=='A'||b=='E'||c=='I'||d=='O'||e=='U') ^ Main.cc:13:24: error: 'c' was not declared in this scope if(a=='A'||b=='E'||c=='I'||d=='O'||e=='U') ^ Main.cc:13:32: error: 'd' was not declared in this scope if(a=='A'||b=='E'||c=='I'||d=='O'||e=='U') ^ Main.cc:13:40: error: 'e' was not declared in this scope if(a=='A'||b=='E'||c=='I'||d=='O'||e=='U') ^ Main.cc:17:16: error: 'b' was not declared in this scope if(a=='a'||b=='e'||c=='i'||d=='o'||e=='u') ^ Main.cc:17:24: error: 'c' was not declared in this scope if(a=='a'||b=='e'||c=='i'||d=='o'||e=='u') ^ Main.cc:17:32: error: 'd' was not declared in this scope if(a=='a'||b=='e'||c=='i'||d=='o'||e=='u') ^ Main.cc:17:40: error: 'e' was not declared in this scope if(a=='a'||b=='e'||c=='i'||d=='o'||e=='u') ^