Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
144722 8 08有几个闰年 C++ Compile Error 0 MS 0 KB 295 2026-01-24 15:54:28

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int n; int a==0; while(3){ cin>>n; if(n%400==0||(n%4==0&&n%100!=0)){ cout<<"Yes"<<endl; int a=a+1; } else{ cout<<"No"<<endl; } t--; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:10: error: expected initializer before '==' token
     int a==0;
          ^
Main.cc:15:9: error: 't' was not declared in this scope
         t--;
         ^