/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'void dts::main()':
foo.cc:152:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i=0;i<x.size();i++)
                ~^~~~~~~~~
foo.cc:157:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (i<x.size())
        ~^~~~~~~~~
foo.cc: In function 'int dts::search(int)':
foo.cc:131:2: warning: control reaches end of non-void function [-Wreturn-type]
  }
  ^
foo.cc: In function 'void dts::main()':
foo.cc:135:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d",&n,&q);
   ~~~~~^~~~~~~~~~~~~~
foo.cc:139:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%d",&ctl[i]);
    ~~~~~^~~~~~~~~~~~~~
foo.cc:141:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d",&pos[i],&val[i]);
     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:143:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&val[i]);
     ~~~~~^~~~~~~~~~~~~~
foo.cc:145:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&pos[i]);
     ~~~~~^~~~~~~~~~~~~~
foo.cc:168:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&t);
   ~~~~~^~~~~~~~~
foo.cc:170:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%d%d",&a[i],&b[i]);
    ~~~~~^~~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Runtime Error Aborted 155ms 201.898 MiB
#2 Runtime Error Aborted 153ms 202.672 MiB
#3 Runtime Error Aborted 154ms 202.492 MiB
#4 Runtime Error Aborted 158ms 202.926 MiB
#5 Runtime Error Aborted 154ms 201.891 MiB
#6 Runtime Error Aborted 150ms 201.914 MiB
#7 Runtime Error Aborted 149ms 201.895 MiB
#8 Runtime Error Aborted 149ms 201.805 MiB
#9 Runtime Error Aborted 142ms 202.062 MiB
#10 Runtime Error Aborted 144ms 202.324 MiB

信息

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