/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'void build(int&, int, int)':
foo.cc:51:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=l+r>>1;
          ~^~
foo.cc: In function 'void modify(int&, int, int, int, int)':
foo.cc:70:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=l+r>>1;
          ~^~
foo.cc: In function 'void query(int, int, int, int, int)':
foo.cc:82:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=l+r>>1;
          ~^~
foo.cc: In function 'int main()':
foo.cc:149:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ~~~~~^~~~~~~~~
foo.cc:151:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d",&u,&v);
   ~~~~~^~~~~~~~~~~~~~
foo.cc:157:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&m);
  ~~~~~^~~~~~~~~
foo.cc:159:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d",&w[i],&loc[i]);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:162:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d",&q,&k);
  ~~~~~^~~~~~~~~~~~~~
foo.cc:165:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d%d",&t,&x,&y);
   ~~~~~^~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Memory Exceeded ≥483ms ≥512.016 MiB
#2 Wrong Answer 0a1,2 > 1 > 2 2 6ms 4.977 MiB
#3 Memory Exceeded ≥480ms ≥512.016 MiB
#4 Memory Exceeded ≥447ms ≥512.016 MiB
#5 Memory Exceeded ≥451ms ≥512.016 MiB
#6 Memory Exceeded ≥446ms ≥512.016 MiB
#7 Memory Exceeded ≥454ms ≥512.016 MiB
#8 Memory Exceeded ≥428ms ≥512.016 MiB
#9 Memory Exceeded ≥394ms ≥512.016 MiB
#10 Runtime Error Segmentation fault 12ms 5.969 MiB

信息

递交者
类型
递交
题目
P1791 骑士的旅行
语言
C++
递交时间
2021-07-19 16:02:06
评测时间
2021-07-19 16:02:06
评测机
分数
0
总耗时
3605ms
峰值内存
512.016 MiB