记录详情

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 129ms 180.793 MiB

信息

递交者
类型
自测
题目
dts的一个脑洞
语言
C++
递交时间
2020-11-09 10:19:40
评测时间
2020-11-09 10:19:41
评测机
分数
0
总耗时
129ms
峰值内存
180.793 MiB