| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 139123 | 刘浩宇 | 属相 | C++ | Compile Error | 0 MS | 0 KB | 227 | 2025-12-01 17:20:36 |
#include<iostream> using namespace std; int main(){ int month,day; cin>>month>>day; if(1<=month<=12&&1<=day<=31&&month=1&&1<=day<=24){ cout<<"Pig"; }else{ cout<<"Mouse"; } }
Main.cc: In function 'int main()':
Main.cc:6:17: warning: comparison of constant '12' with boolean expression is always true [-Wbool-compare]
if(1<=month<=12&&1<=day<=31&&month=1&&1<=day<=24){
^
Main.cc:6:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
if(1<=month<=12&&1<=day<=31&&month=1&&1<=day<=24){
^
Main.cc:6:29: warning: comparison of constant '31' with boolean expression is always true [-Wbool-compare]
if(1<=month<=12&&1<=day<=31&&month=1&&1<=day<=24){
^
Main.cc:6:24: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
if(1<=month<=12&&1<=day<=31&&month=1&&1<=day<=24){
^
Main.cc:6:50: warning: comparison of constant '24' with boolean expression is always true [-Wbool-compare]
if(1<=month<=12&&1<=day<=31&&month=1&&1<=day<=24){
^
Main.cc:6:45: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
if(1<=month<=12&&1<=day<=31&&month=1&&1<=day<=24){
^
Main.cc:6:40: error: lvalue required as left operand of assignment
if(1<=month<=12&&1<=day<=31&&month=1&&1<=day<=24){
^