运行 ID 作者 题号 测评结果 分数 时间 内存 语言 代码长度 提交时间
631836 haoziccc 1014 - 判断字符类型 编译错误 0 0 MS 0 KB C++ 262 1个月前
暂时无法获取本题测试点详情。

Main.cc: In function 'int main()':
Main.cc:7:13: warning: comparison with string literal results in unspecified behavior [-Waddress]
7 | if(a==" ") printf("space");
| ~^~~~~
Main.cc:7:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:8:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | else if(a>="a"&&a<="z") printf("lower");
| ~^~~~~
Main.cc:8:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | else if(a>="a"&&a<="z") printf("lower");
| ~^~~~~
Main.cc:9:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | else if(a>="A"&&a<="Z") printf("upper");
| ~^~~~~
Main.cc:9:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | else if(a>="A"&&a<="Z") printf("upper");
| ~^~~~~
Main.cc:10:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
10 | else if(a>="0"&&a<="9") printf("digit");
| ~^~~~~
Main.cc:10:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
10 | else if(a>="0"&&a<="9") printf("digit");
| ~^~~~~