Compile Error
/in/foo.cc: In function 'int main()': /in/foo.cc:7:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 7 | if(x%4==0&&x%100!=0||x%400==0) | ~~~~~~^~~~~~~~~~ /in/foo.cc:8:23: error: 'YES' was not declared in this scope 8 | cout<<YES; | ^~~ /in/foo.cc:10:23: error: 'NO' was not declared in this scope 10 | cout<<NO<<endl; | ^~
信息
- 递交者
- 类型
- 递交
- 题目
- P1001 判断闰年
- 语言
- C++
- 递交时间
- 2025-02-23 12:44:08
- 评测时间
- 2025-02-24 23:48:03
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes