Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
89836 | 蔡佳轩 | 08判断是否为闰年 | C++ | Compile Error | 0 MS | 0 KB | 231 | 2024-09-07 10:54:33 |
include <iostream> using namespace std; int main(){ int year; cin>>year; if (year%4==0 && year%400==400){ cout<<year<<' '<<"Yes"; } else{ cout<<year<<' '<<"No"; } }
Main.cc:1:1: error: 'include' does not name a type include ^ Main.cc: In function 'int main()': Main.cc:5:5: error: 'cin' was not declared in this scope cin>>year; ^ Main.cc:7:9: error: 'cout' was not declared in this scope cout<