| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 128755 | 田祥江 | 08判断是否为闰年 | C++ | Compile Error | 0 MS | 0 KB | 199 | 2025-08-19 14:48:43 |
#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; if(a%4==0&&a%100!=0||a%400=0){ cout<<a<<" "<<"Yes"<<endl; }else{ cout<<a<<" "<<"No"<<endl; } }
Main.cc: In function 'int main()':
Main.cc:6:14: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(a%4==0&&a%100!=0||a%400=0){
^
Main.cc:6:31: error: lvalue required as left operand of assignment
if(a%4==0&&a%100!=0||a%400=0){
^