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