记录详情

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;
      |                                 ^
# 状态 耗时 内存占用
#1 Accepted 2ms 472.0 KiB
#2 Accepted 1ms 476.0 KiB
#3 Accepted 1ms 492.0 KiB
#4 Accepted 2ms 472.0 KiB
#5 Accepted 1ms 532.0 KiB

信息

递交者
类型
递交
题目
A1-4 分支结构练习:今年过去了多少天
比赛
2025程序设计与竞赛作业赛第一场(整装出发)
语言
C++
递交时间
2025-09-27 19:27:42
评测时间
2025-10-03 02:11:02
评测机
分数
100
总耗时
10ms
峰值内存
532.0 KiB