Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
143488 体验4 [在线测评解答教程] 闰年 C++ Compile Error 0 MS 0 KB 316 2026-01-16 17:22:59

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int t,a[100]={}; cin>>t; for(int i=0;i<t;i++){ cin>>a[i]; } for(int i=0;i<t;i++){ if((a[i]%4==0&&a[i]%100!=0)||(a[i])%400==0)){ cout<<"Yes"; } else{ cout<<"NO"; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:48: error: expected primary-expression before ')' token
     if((a[i]%4==0&&a[i]%100!=0)||(a[i])%400==0)){
                                                ^