记录详情

Accepted

/in/foo.cc: In member function 'T T::operator+(int) const':
/in/foo.cc:10:37: warning: narrowing conversion of '((d.std::chrono::duration<long int>::count() / 3600) % 24)' from 'std::chrono::duration<long int>::rep' {aka 'long int'} to 'int' [-Wnarrowing]
   10 |         return { (d.count() / 3600) % 24, (d.count() / 60) % 60, d.count() % 60 };
      |                  ~~~~~~~~~~~~~~~~~~~^~~~
/in/foo.cc:10:60: warning: narrowing conversion of '((d.std::chrono::duration<long int>::count() / 60) % 60)' from 'std::chrono::duration<long int>::rep' {aka 'long int'} to 'int' [-Wnarrowing]
   10 |         return { (d.count() / 3600) % 24, (d.count() / 60) % 60, d.count() % 60 };
      |                                           ~~~~~~~~~~~~~~~~~^~~~
/in/foo.cc:10:76: warning: narrowing conversion of '(d.std::chrono::duration<long int>::count() % 60)' from 'std::chrono::duration<long int>::rep' {aka 'long int'} to 'int' [-Wnarrowing]
   10 |         return { (d.count() / 3600) % 24, (d.count() / 60) % 60, d.count() % 60 };
      |                                                                  ~~~~~~~~~~^~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 476.0 KiB
#2 Accepted 2ms 476.0 KiB
#3 Accepted 1ms 544.0 KiB
#4 Accepted 2ms 496.0 KiB
#5 Accepted 1ms 532.0 KiB

信息

递交者
类型
递交
题目
P1000 OO1-1 时间类Time
比赛
2024级《面向对象的方法与实践》第一次作业
语言
C++
递交时间
2025-03-14 22:09:53
评测时间
2025-03-14 22:09:53
评测机
分数
100
总耗时
10ms
峰值内存
544.0 KiB