| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 144961 | c13 | 09闰年第n个月有多少天 | C++ | Compile Error | 0 MS | 0 KB | 280 | 2026-01-24 19:50:41 |
#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; if(a==1||a==3||a==5||a==7||a==8||a==10||a=12)cout<<31<<endl; else if(a==4||a==6||a==9||a==11)cout<<30<<endl; else if(a==2) cout<<29<<endl; else cout<<"Invalid"<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:6:46: error: lvalue required as left operand of assignment
if(a==1||a==3||a==5||a==7||a==8||a==10||a=12)cout<<31<