Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98877 | 吴梓玄 | 09判断ASCLL码 | C | Compile Error | 0 MS | 0 KB | 294 | 2024-11-23 17:14:17 |
#include <stdio.h> int main() { char a; scanf("%c",&a); if (a>=65 && a<=90){ printf("Upper Letter"); //a=a+32 } else if (a>=97 && a<=122){ printf("Lower Letter"); //a=a-32 } else { printf("other") } //printf("%c",a); return 0; } //char
Main.c: In function 'main': Main.c:16:2: error: expected ';' before '}' token } ^ Main.c:5:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%c",&a); ^