Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
62163 夏轩淇 字符类型 C++ Compile Error 0 MS 0 KB 513 2023-12-17 16:49:41

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:5: error: 'c' was not declared in this scope
  if(c>='A'&&c<='Z'){
     ^
Main.cc:17:5: error: 'c' was not declared in this scope
  if(c>='a'&&c<='z'){
     ^
Main.cc:26:5: error: 'c' was not declared in this scope
  if(c>='0'&&a<='9'){
     ^
Main.cc:26:13: error: 'a' was not declared in this scope
  if(c>='0'&&a<='9'){
             ^