| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 71182 | 刘泽熙 | 08判断是否为闰年 | C++ | Compile Error | 0 MS | 0 KB | 296 | 2024-04-21 14:34:09 |
#include<bits/stdc++.h> using namespace std; int main(){ int year; cin>>year; if(year%4!=0){ cout <<year<<" "<<"";"yes"; }else{ if(year%100!=0){ cout<<year<<" "<<"no"; }else{ if(year%400==0){ cout<<year<<" "<<"yes"; }else{ cout<<year<<" "<<"no"; } } }
Main.cc: In function 'int main()': Main.cc:7:29: warning: statement has no effect [-Wunused-value] cout <