F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_39682646_7905.cpp:3:16: error: '__always_inline' does not name a type
    3 | #define inline __always_inline
      |                ^~~~~~~~~~~~~~~
0_0_39682646_7905.cpp:6:23: note: in expansion of macro 'inline'
    6 | template <typename T> inline void chkmax(T &x, const T &y) { if (x < y) x = y; }
      |                       ^~~~~~
0_0_39682646_7905.cpp:3:16: error: '__always_inline' does not name a type
    3 | #define inline __always_inline
      |                ^~~~~~~~~~~~~~~
0_0_39682646_7905.cpp:7:23: note: in expansion of macro 'inline'
    7 | template <typename T> inline void read(T &x)
      |                       ^~~~~~
0_0_39682646_7905.cpp:3:16: error: '__always_inline' does not name a type
    3 | #define inline __always_inline
      |                ^~~~~~~~~~~~~~~
0_0_39682646_7905.cpp:21:9: note: in expansion of macro 'inline'
   21 |         inline void push_up(int u)
      |         ^~~~~~
0_0_39682646_7905.cpp:3:16: error: '__always_inline' does not name a type
    3 | #define inline __always_inline
      |                ^~~~~~~~~~~~~~~
0_0_39682646_7905.cpp:35:9: note: in expansion of macro 'inline'
   35 |         inline void push_set(int u, int x)
      |         ^~~~~~
0_0_39682646_7905.cpp:3:16: error: '__always_inline' does not name a type
    3 | #define inline __always_inline
      |                ^~~~~~~~~~~~~~~
0_0_39682646_7905.cpp:40:9: note: in expansion of macro 'inline'
   40 |         inline void push_down(int u)
      |         ^~~~~~
0_0_39682646_7905.cpp: In member function 'void segment_tree_t::build(int, int, int, int*)':
0_0_39682646_7905.cpp:56:17: error: 'push_up' was not declared in this scope
   56 |                 push_up(u);
      |                 ^~~~~~~
0_0_39682646_7905.cpp: In member function 'void segment_tree_t::chkmin(int, int, int, int)':
0_0_39682646_7905.cpp:60:36: error: 'push_set' was not declared in this scope
   60 |                 if (max[u][1] < x) push_set(u, x);
      |                                    ^~~~~~~~
0_0_39682646_7905.cpp:61:22: error: 'push_down' was not declared in this scope
   61 |                 else push_down(u), chkmin(lson(u), l, l + r >> 1, x), chkmin(rson(u), l + r >> 1, r, x), push_up(u);
      |                      ^~~~~~~~~
0_0_39682646_7905.cpp:61:106: error: 'push_up' was not declared in this scope
   61 |                 else push_down(u), chkmin(lson(u), l, l + r >> 1, x), chkmin(rson(u), l + r >> 1, r, x), push_up(u);
      |                                                                                                          ^~~~~~~
0_0_39682646_7905.cpp: In member function 'void segment_tree_t::chkmin(int, int, int, int, int, int)':
0_0_39682646_7905.cpp:67:39: error: 'push_down' was not declared in this scope
   67 |                 int mid = l + r >> 1; push_down(u);
      |                                       ^~~~~~~~~
0_0_39682646_7905.cpp:70:17: error: 'push_up' was not declared in this scope
   70 |                 push_up(u);
      |                 ^~~~~~~
0_0_39682646_7905.cpp: In member function 'int segment_tree_t::query_max(int, int, int, int, int)':
0_0_39682646_7905.cpp:76:17: error: 'push_down' was not declared in this scope
   76 |                 push_down(u), push_up(u);
      |                 ^~~~~~~~~
0_0_39682646_7905.cpp:76:31: error: 'push_up' was not declared in this scope
   76 |                 push_down(u), push_up(u);
      |                               ^~~~~~~
0_0_39682646_7905.cpp:77:31: error: 'chkmax' was not declared in this scope; did you mean 'chkmin'?
   77 |                 if (pl < mid) chkmax(ans, query_max(lson(u), l, mid, pl, pr));
      |                               ^~~~~~
      |                               chkmin
0_0_39682646_7905.cpp:78:31: error: 'chkmax' was not declared in this scope; did you mean 'chkmin'?
   78 |                 if (mid < pr) chkmax(ans, query_max(rson(u), mid, r, pl, pr));
      |                               ^~~~~~
      |                               chkmin
0_0_39682646_7905.cpp: In member function 'int64_t segment_tree_t::query_sum(int, int, int, int, int)':
0_0_39682646_7905.cpp:85:17: error: 'push_down' was not declared in this scope
   85 |                 push_down(u), push_up(u);
      |                 ^~~~~~~~~
0_0_39682646_7905.cpp:85:31: error: 'push_up' was not declared in this scope
   85 |                 push_down(u), push_up(u);
      |                               ^~~~~~~
0_0_39682646_7905.cpp: In function 'void test_case()':
0_0_39682646_7905.cpp:96:9: error: 'read' was not declared in this scope; did you mean 'fread'?
   96 |         read(n), read(m);
      |         ^~~~
      |         fread
0_0_39682646_7905.cpp: In function 'int main()':
0_0_39682646_7905.cpp:113:16: error: 'read' was not declared in this scope; did you mean 'fread'?
  113 |         int t; read(t);
      |                ^~~~
      |                fread


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-10-06 01:38:18, Gzip enabled