| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 139135 | lmh | 属相 | C++ | Compile Error | 0 MS | 0 KB | 228 | 2025-12-01 17:23:36 |
#include<iostream> using namespace std ; int main(){ int month,day; cin>>month>>day; if(month=1&&day<=24){ cout<<"Pig"; }else{ cout<<"Mouse"; } } 评论:
Main.cc:23:1: error: stray '\350' in program
评论:
^
Main.cc:23:1: error: stray '\257' in program
Main.cc:23:1: error: stray '\204' in program
Main.cc:23:1: error: stray '\350' in program
Main.cc:23:1: error: stray '\256' in program
Main.cc:23:1: error: stray '\272' in program
Main.cc: In function 'int main()':
Main.cc:11:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(month=1&&day<=24){
^
Main.cc: At global scope:
Main.cc:23:7: error: expected unqualified-id before ':' token
评论:
^