Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
4132 | 李伟和 | [在线测评解答教程] 闰年 | C++ | Compile Error | 0 MS | 0 KB | 267 | 2024-08-04 01:42:27 |
#include <stdio.h> int main() { int t,n; scanf("%d",&t); while(t--){ scanf("%d",&n); if ((n % 400 == 0)||(n % 4 == 0 && n % 100 != 0)){ printf("YES"); } else{ printf("NO"); } }
Main.cc: In function 'int main()': Main.cc:12:5: error: expected '}' at end of input } ^