/ 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 194ms 188.102 MiB
#2 Runtime Error Aborted 192ms 192.93 MiB
#3 Runtime Error Aborted 155ms 199.035 MiB
#4 Runtime Error Aborted 156ms 198.434 MiB
#5 Runtime Error Aborted 144ms 199.328 MiB
#6 Runtime Error Aborted 143ms 199.164 MiB
#7 Runtime Error Aborted 150ms 198.34 MiB
#8 Runtime Error Aborted 148ms 198.246 MiB
#9 Runtime Error Aborted 152ms 198.312 MiB
#10 Runtime Error Aborted 155ms 198.352 MiB

信息

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