/ Vijos /

记录详情

Accepted

foo.cc: In member function 'void dts::heap::pop()':
foo.cc:63:33: warning: comparison of integer expressions of different signedness: 'dts::ll' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   63 |             for (ll i=1,j;(i<<1)<h.size();i=j)
      |                           ~~~~~~^~~~~~~~~
foo.cc:68:31: warning: comparison of integer expressions of different signedness: 'dts::ll' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   68 |                 if (((i<<1)|1)<h.size())
      |                     ~~~~~~~~~~^~~~~~~~~
foo.cc:73:22: warning: comparison of integer expressions of different signedness: 'dts::ll' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   73 |                 if (j<h.size())
      |                     ~^~~~~~~~~
foo.cc: In function 'void dts::main()':
foo.cc:98:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   98 |                 scanf("%lld",&d[i]);
      |                 ~~~~~^~~~~~~~~~~~~~
foo.cc:100:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  100 |                 scanf("%lld",&w[i]);
      |                 ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 512.0 KiB
#2 Accepted 2ms 512.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 512.0 KiB
#5 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1604 任务调度问题
语言
C++
递交时间
2022-01-08 20:07:16
评测时间
2022-01-08 20:07:16
评测机
分数
100
总耗时
12ms
峰值内存
512.0 KiB