Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
145133 姜景文 判断闰年I C++ Compile Error 0 MS 0 KB 265 2026-01-25 08:57:48

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int year; cin>>year; if(year%100!=0 && year%4==0|| year%400==0){ cout<<""leap year"; }else { cout<<"not leap year"; } return 0; }


Run Info:

Main.cc:7:30: warning: missing terminating " character
             cout<<""leap year";
                              ^
Main.cc:7:13: error: missing terminating " character
             cout<<""leap year";
             ^
Main.cc: In function 'int main()':
Main.cc:6:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
          if(year%100!=0  && year%4==0|| year%400==0){
                          ^
Main.cc:7:19: error: unable to find string literal operator 'operator""leap' with 'const char [1]', 'long unsigned int' arguments
             cout<<""leap year";
                   ^