Accepted
/in/foo.cc: In member function 'int Date::Monthday()': /in/foo.cc:72:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (m == 2) ^~ /in/foo.cc:74:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' return 31;} ^~~~~~ /in/foo.cc: In member function 'int DateTime::Sub(DateTime&)': /in/foo.cc:121:19: warning: 'delta' may be used uninitialized in this function [-Wmaybe-uninitialized] return delta1 + delta2; ^~~~~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1008 OO1-6 日期时间类DateTime
- 比赛
- 2024春 面向对象的程序设计方法(第1场作业赛)
- 语言
- C++
- 递交时间
- 2024-03-15 20:22:58
- 评测时间
- 2024-03-16 18:44:09
- 评测机
- 分数
- 100
- 总耗时
- 7ms
- 峰值内存
- 380.0 KiB