Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
89838 | 徐文杰 | 08判断是否为闰年 | C++ | Compile Error | 0 MS | 0 KB | 183 | 2024-09-07 10:56:10 |
#include<iostream> using namespace std; int main(){ int a; cin>>a; if(a%4==0 or a%400=0){ cout<<a<<"Yes"; } else{ cout<<a<<"No"; } }
Main.cc: In function 'int main()': Main.cc:6:23: error: lvalue required as left operand of assignment if(a%4==0 or a%400=0){ ^