/ Vijos /

记录详情

Accepted

foo.cc: In member function 'void seg::build(int, int, int, int)':
foo.cc:17:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   17 |   int m = l + r >> 1;
      |           ~~^~~
foo.cc: In member function 'void seg::update(int, int, ll, int, int, int)':
foo.cc:29:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   29 |   int m = l + r >> 1;
      |           ~~^~~
foo.cc: In member function 'll seg::query(int, int, int, int, int, ll)':
foo.cc:39:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   39 |   int m = l + r >> 1;
      |           ~~^~~
foo.cc: In function 'void merge(seg, seg, seg, int, int, int)':
foo.cc:50:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   50 |  int m = l + r >> 1;
      |          ~~^~~
foo.cc: In function 'void build(int, int, int)':
foo.cc:60:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   60 |  int m = l + r >> 1;
      |          ~~^~~
foo.cc: In function 'void update(int, int, int, int, ll, int, int, int)':
foo.cc:72:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   72 |  int m = l + r >> 1;
      |          ~~^~~
foo.cc: In function 'll query(int, int, int, int, int, int, int, ll)':
foo.cc:82:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   82 |  int m = l + r >> 1; ll ret = 0;
      |          ~~^~~
foo.cc:82:25: warning: unused variable 'ret' [-Wunused-variable]
   82 |  int m = l + r >> 1; ll ret = 0;
      |                         ^~~
foo.cc: In function 'int main()':
foo.cc:90:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   90 |  scanf("%d", &n);
      |  ~~~~~^~~~~~~~~~
foo.cc:93:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   93 |   scanf("%d", &m);
      |   ~~~~~^~~~~~~~~~
foo.cc:96:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   96 |    scanf("%d%d%d", &x1, &y1, &w);
      |    ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:100:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  100 |    scanf("%d%d%d%d", &x1, &y1, &x2, &y2);
      |    ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 512.0 KiB
#2 Accepted 147ms 52.367 MiB
#3 Accepted 26ms 19.117 MiB
#4 Accepted 34ms 8.621 MiB
#5 Accepted 132ms 54.766 MiB
#6 Accepted 9ms 3.5 MiB
#7 Accepted 99ms 67.242 MiB
#8 Accepted 18ms 6.875 MiB
#9 Accepted 50ms 25.438 MiB
#10 Accepted 150ms 86.742 MiB

信息

递交者
类型
递交
题目
P1512 SuperBrother打鼹鼠
语言
C++
递交时间
2022-02-21 11:15:17
评测时间
2022-02-21 11:15:17
评测机
分数
100
总耗时
671ms
峰值内存
86.742 MiB