Accepted
/in/foo.cc: In function 'int main()': /in/foo.cc:18:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 18 | else | ^~~~ /in/foo.cc:20:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 20 | if(month==1) | ^~ /in/foo.cc:44:23: warning: 'd' may be used uninitialized [-Wmaybe-uninitialized] 44 | cout<<d<<endl; | ^ /in/foo.cc:5:33: note: 'd' was declared here 5 | int year,month,leap,day,d; | ^
信息
- 递交者
- 类型
- 递交
- 题目
- A1-4 分支结构练习:今年过去了多少天
- 比赛
- 2025程序设计与竞赛作业赛第一场(整装出发)
- 语言
- C++
- 递交时间
- 2025-09-27 19:27:42
- 评测时间
- 2025-10-03 02:11:02
- 评测机
- 分数
- 100
- 总耗时
- 10ms
- 峰值内存
- 532.0 KiB