Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
158753 王垚植 过生日 C++ Compile Error 0 MS 0 KB 322 2026-08-22 17:04:13

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; bool run(int y){ if ((y%100!=0 && y%4==0) && y%400==0){ return 1; } return 0; } int main(){ int T; cin>>T; int y,n,sumi=0; for (int i=0;i<T;i++){ cin>>a>>b; for (int j=0;;j++){ } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:14:11: error: 'a' was not declared in this scope
      cin>>a>>b;
           ^
Main.cc:14:14: error: 'b' was not declared in this scope
      cin>>a>>b;
              ^
Main.cc:12:9: warning: unused variable 'y' [-Wunused-variable]
     int y,n,sumi=0;
         ^
Main.cc:12:11: warning: unused variable 'n' [-Wunused-variable]
     int y,n,sumi=0;
           ^
Main.cc:12:13: warning: unused variable 'sumi' [-Wunused-variable]
     int y,n,sumi=0;
             ^