/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'void dts::main()':
foo.cc:151:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (ll i=0;i<x.size();i++)
               ~^~~~~~~~~
foo.cc:156:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (i<x.size())
        ~^~~~~~~~~
foo.cc: In function 'dts::ll dts::search(dts::ll)':
foo.cc:130:2: warning: control reaches end of non-void function [-Wreturn-type]
  }
  ^
foo.cc: In function 'void dts::main()':
foo.cc:134:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%lld%lld",&n,&q);
   ~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:138:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%lld",&ctl[i]);
    ~~~~~^~~~~~~~~~~~~~~~
foo.cc:140:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%lld%lld",&pos[i],&val[i]);
     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:142:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%lld",&val[i]);
     ~~~~~^~~~~~~~~~~~~~~~
foo.cc:144:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%lld",&pos[i]);
     ~~~~~^~~~~~~~~~~~~~~~
foo.cc:167:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%lld",&t);
   ~~~~~^~~~~~~~~~~
foo.cc:169:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%lld%lld",&a[i],&b[i]);
    ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Runtime Error Aborted 148ms 172.715 MiB
#2 Runtime Error Aborted 155ms 177.953 MiB
#3 Runtime Error Aborted 146ms 181.965 MiB
#4 Runtime Error Aborted 144ms 180.562 MiB
#5 Runtime Error Aborted 138ms 180.547 MiB
#6 Runtime Error Aborted 137ms 180.574 MiB
#7 Runtime Error Aborted 140ms 180.625 MiB
#8 Runtime Error Aborted 141ms 180.504 MiB
#9 Runtime Error Aborted 135ms 180.605 MiB
#10 Runtime Error Aborted 134ms 180.535 MiB

信息

递交者
类型
递交
题目
P2051 快速查询
语言
C++
递交时间
2020-11-09 10:28:08
评测时间
2020-11-09 10:28:08
评测机
分数
0
总耗时
1422ms
峰值内存
181.965 MiB