Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
158786 王慕哲 过生日 C++ Compile Error 0 MS 0 KB 512 2026-08-22 17:18:56

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; bool r(int y){ if((y%4==0 && y%100!=0) || y%400==0){ return 1; } return 0; } int main(){ int T; cin>>T; while(T--){ int Y,M; cin>>Y>>M; int c=0; int a; for(int i=Y;;i++){ if(r(i)){ c++; if(c==N){ a=i; break; } } } } cout<<a return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:20:23: error: 'N' was not declared in this scope
                 if(c==N){
                       ^
Main.cc:27:11: error: 'a' was not declared in this scope
     cout<