Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
66517 袁嘉蔓 09闰年第n个月有多少天 C++ Compile Error 0 MS 0 KB 521 2024-03-09 11:40:42

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n==1&&n==3&&n==5&&n==7&&n==8&&n==10&&n==12){ cout<<31; }else if(n==4&&n==6&&n==9&&n==11){ cout<<30; }else if(n==2){ cout<<29; }else if(a<1&&a>13){ cout<<"#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n==1&&n==3&&n==5&&n==7&&n==8&&n==10&&n==12){ cout<<31; }else if(n==4&&n==6&&n==9&&n==11){ cout<<30; }else if(n==2){ cout<<29; }else{ cout<<"Invalid"; } return 0;


Run Info:

Main.cc:13:9: warning: missing terminating " character
   cout<<"#include
         ^
Main.cc:13:3: error: missing terminating " character
   cout<<"#include
   ^
Main.cc: In function 'int main()':
Main.cc:12:11: error: 'a' was not declared in this scope
  }else if(a<1&&a>13){
           ^
Main.cc:14:1: error: expected primary-expression before 'using'
 using namespace std;
 ^
Main.cc:15:11: error: a function-definition is not allowed here before '{' token
 int main(){
           ^
Main.cc:27:10: error: expected '}' at end of input
  return 0;
          ^
Main.cc:27:10: error: expected '}' at end of input