/ CWOI /

记录详情

Compile Error

/in/foo.cc:8:2: error: 'll' does not name a type
  ll addv[N << 2], mulv[N << 2], sumv[N << 2], setv[N << 2];
  ^~
/in/foo.cc:9:2: error: 'll' does not name a type
  ll qL, qR, v, _sum;
  ^~
/in/foo.cc:10:23: error: 'll' has not been declared
  inline void pushdown(ll l, ll r, ll o) {
                       ^~
/in/foo.cc:10:29: error: 'll' has not been declared
  inline void pushdown(ll l, ll r, ll o) {
                             ^~
/in/foo.cc:10:35: error: 'll' has not been declared
  inline void pushdown(ll l, ll r, ll o) {
                                   ^~
/in/foo.cc:38:13: error: 'll' has not been declared
  void build(ll a[], ll l, ll r, ll o) {
             ^~
/in/foo.cc:38:21: error: 'll' has not been declared
  void build(ll a[], ll l, ll r, ll o) {
                     ^~
/in/foo.cc:38:27: error: 'll' has not been declared
  void build(ll a[], ll l, ll r, ll o) {
                           ^~
/in/foo.cc:38:33: error: 'll' has not been declared
  void build(ll a[], ll l, ll r, ll o) {
                                 ^~
/in/foo.cc:51:11: error: 'll' has not been declared
  void jia(ll l, ll r, ll o) {
           ^~
/in/foo.cc:51:17: error: 'll' has not been declared
  void jia(ll l, ll r, ll o) {
                 ^~
/in/foo.cc:51:23: error: 'll' has not been declared
  void jia(ll l, ll r, ll o) {
                       ^~
/in/foo.cc:63:11: error: 'll' has not been declared
  void gai(ll l, ll r, ll o) {
           ^~
/in/foo.cc:63:17: error: 'll' has not been declared
  void gai(ll l, ll r, ll o) {
                 ^~
/in/foo.cc:63:23: error: 'll' has not been declared
  void gai(ll l, ll r, ll o) {
                       ^~
/in/foo.cc:75:13: error: 'll' has not been declared
  void cheng(ll l, ll r, ll o) {
             ^~
/in/foo.cc:75:19: error: 'll' has not been declared
  void cheng(ll l, ll r, ll o) {
                   ^~
/in/foo.cc:75:25: error: 'll' has not been declared
  void cheng(ll l, ll r, ll o) {
                         ^~
/in/foo.cc:87:13: error: 'll' has not been declared
  void query(ll l, ll r, ll o) {
             ^~
/in/foo.cc:87:19: error: 'll' has not been declared
  void query(ll l, ll r, ll o) {
                   ^~
/in/foo.cc:87:25: error: 'll' has not been declared
  void query(ll l, ll r, ll o) {
                         ^~
/in/foo.cc:102:20: error: 'll' has not been declared
  inline void build(ll a[]) {
                    ^~
/in/foo.cc:105:18: error: 'll' has not been declared
  inline void add(ll l, ll r, ll v) {
                  ^~
/in/foo.cc:105:24: error: 'll' has not been declared
  inline void add(ll l, ll r, ll v) {
                        ^~
/in/foo.cc:105:30: error: 'll' has not been declared
  inline void add(ll l, ll r, ll v) {
                              ^~
/in/foo.cc:109:18: error: 'll' has not been declared
  inline void set(ll l, ll r, ll v) {
                  ^~
/in/foo.cc:109:24: error: 'll' has not been declared
  inline void set(ll l, ll r, ll v) {
                        ^~
/in/foo.cc:109:30: error: 'll' has not been declared
  inline void set(ll l, ll r, ll v) {
                              ^~
/in/foo.cc:113:18: error: 'll' has not been declared
  inline void mul(ll l, ll r, ll o) {
                  ^~
/in/foo.cc:113:24: error: 'll' has not been declared
  inline void mul(ll l, ll r, ll o) {
                        ^~
/in/foo.cc:113:30: error: 'll' has not been declared
  inline void mul(ll l, ll r, ll o) {
                              ^~
/in/foo.cc:117:9: error: 'll' does not name a type
  inline ll query(ll l, ll r) {
         ^~
/in/foo.cc: In member function 'void SegmentTree::pushdown(int, int, int)':
/in/foo.cc:11:3: error: 'ini' was not declared in this scope
   ini;
   ^~~
/in/foo.cc:12:7: error: 'setv' was not declared in this scope
   if (setv[o] != -1) {
       ^~~~
/in/foo.cc:14:4: error: 'addv' was not declared in this scope
    addv[lc] = addv[rc] = 0;
    ^~~~
/in/foo.cc:15:4: error: 'mulv' was not declared in this scope
    mulv[lc] = mulv[rc] = 1;
    ^~~~
/in/foo.cc:16:4: error: 'sumv' was not declared in this scope
    sumv[lc] = (m - l + 1) * setv[o];
    ^~~~
/in/foo.cc:21:7: error: 'mulv' was not declared in this scope
   if (mulv[o] != 1) {
       ^~~~
/in/foo.cc:24:4: error: 'addv' was not declared in this scope
    addv[lc] *= mulv[o];
    ^~~~
/in/foo.cc:26:4: error: 'sumv' was not declared in this scope
    sumv[lc] *= mulv[o];
    ^~~~
/in/foo.cc:30:7: error: 'addv' was not declared in this scope
   if (addv[o]) {
       ^~~~
/in/foo.cc:33:4: error: 'sumv' was not declared in this scope
    sumv[lc] += (m - l + 1) * addv[o];
    ^~~~
/in/foo.cc: In member function 'void SegmentTree::build(int*, int, int, int)':
/in/foo.cc:40:4: error: 'sumv' was not declared in this scope
    sumv[o] = a[l];
    ^~~~
/in/foo.cc:41:4: error: 'addv' was not declared in this scope
    addv[o] = 0;
    ^~~~
/in/foo.cc:42:4: error: 'mulv' was not declared in this scope
    mulv[o] = 1;
    ^~~~
/in/foo.cc:43:4: error: 'setv' was not declared in this scope
    setv[o] = 0;
    ^~~~
/in/foo.cc:46:3: error: 'ini' was not declared in this scope
   ini;
   ^~~
/in/foo.cc:49:3: error: 'pushup' was not declared in this scope
   pushup;
   ^~~~~~
/in/foo.cc: In member function 'void SegmentTree::jia(int, int, int)':
/in/foo.cc:52:7: error: 'qL' was not declared in this scope
   if (qL <= l && r <= qR) {
       ^~
/in/foo.cc:52:23: error: 'qR' was not declared in this scope
   if (qL <= l && r <= qR) {
                       ^~
/in/foo.cc:53:4: error: 'addv' was not declared in this scope
    addv[o] += v;
    ^~~~
/in/foo.cc:53:15: error: 'v' was not declared in this scope
    addv[o] += v;
               ^
/in/foo.cc:54:4: error: 'sumv' was not declared in this scope
    sumv[o] += v * (r - l + 1);
    ^~~~
/in/foo.cc:57:3: error: 'ini' was not declared in this scope
   ini;
   ^~~
/in/foo.cc:59:7: error: 'qL' was not declared in this scope
   if (qL <= m) jia(l, m, lc);
       ^~
/in/foo.cc:60:7: error: 'qR' was not declared in this scope
   if (qR > m) jia(m + 1, r, rc);
       ^~
/in/foo.cc:61:3: error: 'pushup' was not declared in this scope
   pushup;
   ^~~~~~
/in/foo.cc: In member function 'void SegmentTree::gai(int, int, int)':
/in/foo.cc:64:7: error: 'qL' was not declared in this scope
   if (qL <= l && r <= qR) {
       ^~
/in/foo.cc:64:23: error: 'qR' was not declared in this scope
   if (qL <= l && r <= qR) {
                       ^~
/in/foo.cc:65:4: error: 'setv' was not declared in this scope
    setv[o] = v;
    ^~~~
/in/foo.cc:65:14: error: 'v' was not declared in this scope
    setv[o] = v;
              ^
/in/foo.cc:66:4: error: 'sumv' was not declared in this scope
    sumv[o] = v * (r - l + 1);
    ^~~~
/in/foo.cc:69:3: error: 'ini' was not declared in this scope
   ini;
   ^~~
/in/foo.cc:71:7: error: 'qL' was not declared in this scope
   if (qL <= m) gai(l, m, lc);
       ^~
/in/foo.cc:72:7: error: 'qR' was not declared in this scope
   if (qR > m) gai(m + 1, r, rc);
       ^~
/in/foo.cc:73:3: error: 'pushup' was not declared in this scope
   pushup;
   ^~~~~~
/in/foo.cc: In member function 'void SegmentTree::cheng(int, int, int)':
/in/foo.cc:76:7: error: 'qL' was not declared in this scope
   if (qL <= l && r <= qR) {
       ^~
/in/foo.cc:76:23: error: 'qR' was not declared in this scope
   if (qL <= l && r <= qR) {
                       ^~
/in/foo.cc:77:4: error: 'mulv' was not declared in this scope
    mulv[o] *= v;
    ^~~~
/in/foo.cc:77:15: error: 'v' was not declared in this scope
    mulv[o] *= v;
               ^
/in/foo.cc:78:4: error: 'sumv' was not declared in this scope
    sumv[o] *= v;
    ^~~~
/in/foo.cc:81:3: error: 'ini' was not declared in this scope
   ini;
   ^~~
/in/foo.cc:83:7: error: 'qL' was not declared in this scope
   if (qL <= m) cheng(l, m, lc);
       ^~
/in/foo.cc:84:7: error: 'qR' was not declared in this scope
   if (qR > m) cheng(m + 1, r, rc);
       ^~
/in/foo.cc:85:3: error: 'pushup' was not declared in this scope
   pushup;
   ^~~~~~
/in/foo.cc: In member function 'void SegmentTree::query(int, int, int)':
/in/foo.cc:88:7: error: 'qL' was not declared in this scope
   if (qL <= l && r <= qR) {
       

信息

递交者
类型
自测
题目
2017.07.19 P3 软件包管理器
语言
C++
递交时间
2018-04-06 11:42:01
评测时间
2018-04-06 11:42:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes