Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
139478 李铭洋 08判断是否为闰年 C++ Compile Error 0 MS 0 KB 193 2025-12-06 20:03:02

Tests(0/0):


Code:

#include<iostream> using namespace std; int main() { int a; cin>>a; if((a%4==0&&a%100!=0)||(a&400==0)) { couta<<" "<<"yes"; } else { cout<<a<<" "<<"no"; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:27: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
  if((a%4==0&&a%100!=0)||(a&400==0))
                           ^
Main.cc:9:3: error: 'couta' was not declared in this scope
   couta<<" "<<"yes";
   ^