记录详情

Accepted

/in/foo.cc: In function 'std::ostream& operator<<(std::ostream&, const Time&)':
/in/foo.cc:11:2: warning: no return statement in function returning non-void [-Wreturn-type]
  }
  ^
/in/foo.cc: In function 'std::ostream& operator<<(std::ostream&, const Date&)':
/in/foo.cc:55:2: warning: no return statement in function returning non-void [-Wreturn-type]
  }
  ^
/in/foo.cc: In member function 'll Date::operator-(Date&)':
/in/foo.cc:84:13: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if(i%4==0&&i%100!=0||i%400==0)
       ~~~~~~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 388.0 KiB
#2 Accepted 1ms 420.0 KiB
#3 Accepted 1ms 376.0 KiB
#4 Accepted 1ms 376.0 KiB
#5 Accepted 1ms 376.0 KiB

信息

递交者
类型
递交
题目
P1005 OO1-4 日期类Date
比赛
2024春 面向对象的程序设计方法(第1场作业赛)
语言
C++
递交时间
2024-03-17 16:24:58
评测时间
2024-03-17 17:39:11
评测机
分数
100
总耗时
7ms
峰值内存
420.0 KiB