| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 154139 | 鸡哥 | 08判断是否为闰年 | C++ | Compile Error | 0 MS | 0 KB | 292 | 2026-05-24 15:32:04 |
#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; if(a % 400 == 0){ cout<<"yes"; }else{ if(a % 400 == 1 and a % 100 ==1 anda % 4 == 0){ cout<<"yes"; }else{ if(a % 400 == 1 and a % 100 == 0){ cout<<"no"; } } } }
Main.cc: In function 'int main()':
Main.cc:9:35: error: expected ')' before 'anda'
if(a % 400 == 1 and a % 100 ==1 anda % 4 == 0){
^