/ 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 Time Exceeded ≥170ms ≥167.535 MiB
#2 Runtime Error Aborted 185ms 198.254 MiB
#3 Runtime Error Aborted 155ms 202.645 MiB
#4 Runtime Error Aborted 150ms 202.082 MiB
#5 Runtime Error Aborted 160ms 201.945 MiB
#6 Runtime Error Aborted 157ms 202.41 MiB
#7 Runtime Error Aborted 159ms 202.227 MiB
#8 Runtime Error Aborted 157ms 202.453 MiB
#9 Runtime Error Aborted 150ms 202.266 MiB
#10 Runtime Error Aborted 151ms 202.309 MiB

信息

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