Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
119399 汪义罗 08判断是否为闰年 C++ Compile Error 0 MS 0 KB 219 2025-05-17 15:07:51

Tests(0/0):


Code:

vv#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n% 400 == 0 || (n % 4 == 0 && n % 100 !=0)){ cout<<n<<"年份 yes"; }else{ cout<<n<<"年份 NO"; } return 0; }


Run Info:

Main.cc:1:3: error: stray '#' in program
 vv#include
   ^
Main.cc:1:1: error: 'vv' does not name a type
 vv#include
 ^
Main.cc: In function 'int main()':
Main.cc:7:2: error: 'cin' was not declared in this scope
  cin>>n;
  ^
Main.cc:9:2: error: 'cout' was not declared in this scope
  cout<