| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 62075 | 杨莹斌 | 字符类型 | C++ | Compile Error | 0 MS | 0 KB | 481 | 2023-12-17 11:14:32 |
#include <bits/stdc++.h>. using namespace std; int main (){ char c; cin>>c; if(c >= 'A' && c <= 'Z'){ if(c == 'A'c == 'E', c =='I', c =='O', c =='U'){ cout<<"Upper Vowel"; } else{ cout<<"Upper Letter" } } if(c >= 'a' && c <= 'z'){ if(c == 'a'c == 'e', c =='i', c =='o', c =='u'){ cout<<"Lower Vowel"; }else{ cout<<"Lower Letter"; } if(c >= '0' && c <= '9'){ cout<<"Digit"; } else{ cout<<"Other"; } return 0; }
Main.cc:1:25: warning: extra tokens at end of #include directive
#include .
^
Main.cc: In function 'int main()':
Main.cc:9:11: error: unable to find character literal operator 'operator""c' with 'char' argument
if(c == 'A'c == 'E', c =='I', c =='O', c =='U'){
^
Main.cc:14:3: error: expected ';' before '}' token
}
^
Main.cc:17:11: error: unable to find character literal operator 'operator""c' with 'char' argument
if(c == 'a'c == 'e', c =='i', c =='o', c =='u'){
^
Main.cc:29:1: error: expected '}' at end of input
}
^