Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81301 赵文浚 字符类型 C++ Compile Error 0 MS 0 KB 464 2024-07-12 11:29:02

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:20:10: error: 'b' was not declared in this scope
  else if(b>=48 && b<=57)
          ^
Main.cc:28:2: error: 'else' without a previous 'if'
  else if( a>='A' && a<='Z')
  ^