Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
158024 [在线测评解答教程] 闰年 C++ Compile Error 0 MS 0 KB 254 2026-08-20 15:24:30

Tests(0/0):


Code:

#include <stdio.h> int main() { int t, n; cin>>t; while (t--) { cin>>n; if(n%4==0 && n%100!=0 && n%400==0){ cout<<"yes"<<"/n"; }else{ cout<<"no"<<"/n"; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:5: error: 'cin' was not declared in this scope
     cin>>t;
     ^
Main.cc:9:13: error: 'cout' was not declared in this scope
             cout<<"yes"<<"/n";
             ^
Main.cc:11:10: error: 'cout' was not declared in this scope
          cout<<"no"<<"/n";
          ^