Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
93339 陈铎文 [在线测评解答教程] 闰年 C++ Compile Error 0 MS 0 KB 231 2024-10-13 12:20:18

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:20: error: invalid operands of types 'void*' and 'int' to binary 'operator%'
   if(m%4==0) and m%100!=0{
                    ^
Main.cc:10:18: error: label 'm' used but not defined
   if(m%4==0) and m%100!=0{
                  ^