/ Vijos /

记录详情

Accepted

foo.cc: In function 'void dts::dfs(std::vector<double>)':
foo.cc:35:26: warning: comparison of integer expressions of different signedness: 'dts::ll' {aka 'long long int'} and 'std::vector<double>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   35 |             for (ll i=0;i<rec.size();i++)
      |                         ~^~~~~~~~~~~
foo.cc:36:32: warning: comparison of integer expressions of different signedness: 'dts::ll' {aka 'long long int'} and 'std::vector<double>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   36 |                 for (ll j=i+1;j<rec.size();j++)
      |                               ~^~~~~~~~~~~
foo.cc:38:38: warning: comparison of integer expressions of different signedness: 'dts::ll' {aka 'long long int'} and 'std::vector<double>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   38 |                     for (ll k=0,l=0;k<rec.size();k++)
      |                                     ~^~~~~~~~~~~
foo.cc: In function 'void dts::main()':
foo.cc:69:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   69 |             scanf("%lf",&a[i]);
      |             ~~~~~^~~~~~~~~~~~~
foo.cc:73:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   73 |                 scanf("%lf",&key);
      |                 ~~~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 6ms 384.0 KiB
#2 Accepted 11ms 384.0 KiB
#3 Accepted 9ms 384.0 KiB
#4 Accepted 8ms 384.0 KiB
#5 Accepted 8ms 384.0 KiB
#6 Accepted 7ms 384.0 KiB
#7 Accepted 7ms 384.0 KiB
#8 Accepted 6ms 384.0 KiB
#9 Accepted 5ms 384.0 KiB
#10 Accepted 7ms 384.0 KiB

信息

递交者
类型
递交
题目
P1140 24点游戏狂想曲
语言
C++
递交时间
2022-04-10 16:51:13
评测时间
2022-04-10 16:51:13
评测机
分数
100
总耗时
79ms
峰值内存
384.0 KiB