Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
124713 田子熙 字符类型 C++ Compile Error 0 MS 0 KB 505 2025-07-12 11:33:04

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ char c; int b; cin>>a; 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'){ if(c=='a' || c=='e' || c=='i' || c=='o' || c=='u'){ cout<<"Lower Vowel"; }else{ cout<<"Lower Letter"; } } }else{ if(c<='9' && c>='0'){ cout<<"Digit"; } }else{ cout<<"Other"; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:7: error: 'a' was not declared in this scope
  cin>>a;
       ^
Main.cc:21:3: error: 'else' without a previous 'if'
  }else{
   ^
Main.cc:25:3: error: 'else' without a previous 'if'
  }else{
   ^
Main.cc:5:6: warning: unused variable 'b' [-Wunused-variable]
  int b;
      ^