Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
119435 张文浩 08判断是否为闰年 C++ Compile Error 0 MS 0 KB 1344 2025-05-17 15:28:01

Tests(0/0):


Code:

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


Run Info:

Main.cc:18:2: error: stray '#' in program
 }#include
  ^
Main.cc:35:2: error: stray '#' in program
 }#include
  ^
Main.cc:52:2: error: stray '#' in program
 }#include
  ^
Main.cc:69:2: error: stray '#' in program
 }#include
  ^
Main.cc:86:2: error: stray '#' in program
 }#include
  ^
Main.cc:18:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:21:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:4:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:35:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:38:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:4:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:52:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:55:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:4:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:69:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:72:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:4:5: note: 'int main()' previously defined here
 int main(){
     ^
Main.cc: At global scope:
Main.cc:86:3: error: 'include' does not name a type
 }#include
   ^
Main.cc: In function 'int main()':
Main.cc:89:5: error: redefinition of 'int main()'
 int main(){
     ^
Main.cc:4:5: note: 'int main()' previously defined here
 int main(){
     ^