记录详情

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 332.0 KiB
#2 Accepted 1ms 324.0 KiB
#3 Accepted 1ms 356.0 KiB
#4 Accepted 1ms 376.0 KiB
#5 Accepted 1ms 376.0 KiB

信息

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