| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 165070 | 屠思宇 | 判断闰年I | C++ | Compile Error | 0 MS | 0 KB | 256 | 2026-11-09 19:27:13 |
#include<bits/stdc++.h> using namespace std; int main(){ int year; cin>>year; if ((year%4==0 && year%100!=0) || year%400=0){ cout<<"leap year"<<endl; } else{ cout<<"not leap year"<<endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:6:47: error: lvalue required as left operand of assignment
if ((year%4==0 && year%100!=0) || year%400=0){
^