/ Vijos /

记录详情

Time Exceeded

foo.cc: In function 'void dts::main()':
foo.cc:152:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  152 |         for (int i=0;i<x.size();i++)
      |                      ~^~~~~~~~~
foo.cc:157:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  157 |             if (i<x.size())
      |                 ~^~~~~~~~~
foo.cc: In function 'int dts::search(int)':
foo.cc:131:5: warning: control reaches end of non-void function [-Wreturn-type]
  131 |     }
      |     ^
foo.cc: In function 'void dts::main()':
foo.cc:135:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  135 |         scanf("%d%d",&n,&q);
      |         ~~~~~^~~~~~~~~~~~~~
foo.cc:139:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  139 |             scanf("%d",&ctl[i]);
      |             ~~~~~^~~~~~~~~~~~~~
foo.cc:141:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  141 |                 scanf("%d%d",&pos[i],&val[i]);
      |                 ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:143:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  143 |                 scanf("%d",&val[i]);
      |                 ~~~~~^~~~~~~~~~~~~~
foo.cc:145:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  145 |                 scanf("%d",&pos[i]);
      |                 ~~~~~^~~~~~~~~~~~~~
foo.cc:168:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  168 |         scanf("%d",&t);
      |         ~~~~~^~~~~~~~~
foo.cc:170:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  170 |             scanf("%d%d",&a[i],&b[i]);
      |             ~~~~~^~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Time Exceeded ≥2135ms ≥256.016 MiB
#2 Time Exceeded ≥2195ms ≥256.016 MiB
#3 Time Exceeded ≥2070ms ≥256.016 MiB
#4 Time Exceeded ≥2075ms ≥256.016 MiB
#5 Time Exceeded ≥2056ms ≥256.016 MiB
#6 Time Exceeded ≥2127ms ≥256.016 MiB
#7 Time Exceeded ≥2124ms ≥256.016 MiB
#8 Time Exceeded ≥2067ms ≥256.016 MiB
#9 Time Exceeded ≥2058ms ≥256.016 MiB
#10 Time Exceeded ≥2149ms ≥256.016 MiB

信息

递交者
类型
递交
题目
P2051 快速查询
语言
C++
递交时间
2021-12-12 18:59:56
评测时间
2021-12-12 19:01:04
评测机
分数
0
总耗时
≥21061ms
峰值内存
≥256.016 MiB