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_37355382_4038.cpp:113:11: error: redefinition of 'const int N'
 const int N = 1E5 + 10;
           ^
0_0_37355382_4038.cpp:6:11: note: 'const int N' previously defined here
 const int N = 1E5 + 10;
           ^
0_0_37355382_4038.cpp:114:8: error: redefinition of 'struct node'
 struct node {
        ^
0_0_37355382_4038.cpp:7:8: error: previous definition of 'struct node'
 struct node {
        ^
0_0_37355382_4038.cpp:118:12: error: invalid type in declaration before ',' token
 }t1[N << 2], t2[N << 2]; // 基友, 女神
            ^
0_0_37355382_4038.cpp: In function 'void pushdown(node&, int)':
0_0_37355382_4038.cpp:120:13: error: incompatible types in assignment of 'int' to 'int [2]'
     op.fmax = lazy * (op.r - op.l + 1);
             ^
0_0_37355382_4038.cpp:121:13: error: invalid array assignment
     op.lmax = op.fmax, op.rmax = op.fmax;
             ^
0_0_37355382_4038.cpp:121:32: error: invalid array assignment
     op.lmax = op.fmax, op.rmax = op.fmax;
                                ^
0_0_37355382_4038.cpp:122:13: error: incompatible types in assignment of 'int' to 'int [2]'
     op.lazy = lazy;
             ^
0_0_37355382_4038.cpp: In function 'void pushdown(node*, int)':
0_0_37355382_4038.cpp:125:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
     if (t[x].lazy == -1) return;
                       ^
0_0_37355382_4038.cpp:126:34: error: invalid conversion from 'int*' to 'int' [-fpermissive]
     pushdown(t[x << 1], t[x].lazy), pushdown(t[x << 1 | 1], t[x].lazy);
                                  ^
0_0_37355382_4038.cpp:119:6: note: initializing argument 2 of 'void pushdown(node&, int)'
 void pushdown(node& op, int lazy) {
      ^
0_0_37355382_4038.cpp:126:70: error: invalid conversion from 'int*' to 'int' [-fpermissive]
     pushdown(t[x << 1], t[x].lazy), pushdown(t[x << 1 | 1], t[x].lazy);
                                                                      ^
0_0_37355382_4038.cpp:119:6: note: initializing argument 2 of 'void pushdown(node&, int)'
 void pushdown(node& op, int lazy) {
      ^
0_0_37355382_4038.cpp:127:15: error: incompatible types in assignment of 'int' to 'int [2]'
     t[x].lazy = -1;
               ^
0_0_37355382_4038.cpp: In function 'void pushup(node&, node&, node&)':
0_0_37355382_4038.cpp:131:50: error: invalid operands of types 'int [2]' and 'int [2]' to binary 'operator+'
     p.fmax = max(max(l.fmax, r.fmax), l.rmax + r.lmax);
                                                  ^
0_0_37355382_4038.cpp:132:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
     p.lmax = l.lmax + (l.lmax == l.r - l.l + 1 ? r.lmax : 0);
                                              ^
0_0_37355382_4038.cpp:132:60: error: invalid operands of types 'int [2]' and 'int*' to binary 'operator+'
     p.lmax = l.lmax + (l.lmax == l.r - l.l + 1 ? r.lmax : 0);
                                                            ^
0_0_37355382_4038.cpp:133:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
     p.rmax = r.rmax + (r.rmax == r.r - r.l + 1 ? l.rmax : 0);
                                              ^
0_0_37355382_4038.cpp:133:60: error: invalid operands of types 'int [2]' and 'int*' to binary 'operator+'
     p.rmax = r.rmax + (r.rmax == r.r - r.l + 1 ? l.rmax : 0);
                                                            ^
0_0_37355382_4038.cpp: In function 'void build(int, int, int)':
0_0_37355382_4038.cpp:137:6: error: redefinition of 'void build(int, int, int)'
 void build(int l, int r, int x = 1) {
      ^
0_0_37355382_4038.cpp:37:6: note: 'void build(int, int, int)' previously defined here
 void build(int l, int r, int x = 1) {
      ^
0_0_37355382_4038.cpp:138:19: error: cannot convert '<brace-enclosed initializer list>' to 'int' in assignment
     t1[x] = t2[x] = { l, r, 1, 1, 1, -1 };
                   ^
0_0_37355382_4038.cpp:142:17: error: no matching function for call to 'pushup(int [400040], int&)'
     pushup(t1, x), pushup(t2, x);
                 ^
0_0_37355382_4038.cpp:142:17: note: candidates are:
0_0_37355382_4038.cpp:28:6: note: void pushup(int)
 void pushup(int x) {
      ^
0_0_37355382_4038.cpp:28:6: note:   candidate expects 1 argument, 2 provided
0_0_37355382_4038.cpp:130:6: note: void pushup(node&, node&, node&)
 void pushup(node& p, node& l, node& r) {
      ^
0_0_37355382_4038.cpp:130:6: note:   candidate expects 3 arguments, 2 provided
0_0_37355382_4038.cpp:135:6: note: void pushup(node*, int)
 void pushup(node t[], int x) { pushup(t[x], t[x << 1], t[x << 1 | 1]); }
      ^
0_0_37355382_4038.cpp:135:6: note:   no known conversion for argument 1 from 'int [400040]' to 'node*'
0_0_37355382_4038.cpp:142:32: error: no matching function for call to 'pushup(int [400040], int&)'
     pushup(t1, x), pushup(t2, x);
                                ^
0_0_37355382_4038.cpp:142:32: note: candidates are:
0_0_37355382_4038.cpp:28:6: note: void pushup(int)
 void pushup(int x) {
      ^
0_0_37355382_4038.cpp:28:6: note:   candidate expects 1 argument, 2 provided
0_0_37355382_4038.cpp:130:6: note: void pushup(node&, node&, node&)
 void pushup(node& p, node& l, node& r) {
      ^
0_0_37355382_4038.cpp:130:6: note:   candidate expects 3 arguments, 2 provided
0_0_37355382_4038.cpp:135:6: note: void pushup(node*, int)
 void pushup(node t[], int x) { pushup(t[x], t[x << 1], t[x << 1 | 1]); }
      ^
0_0_37355382_4038.cpp:135:6: note:   no known conversion for argument 1 from 'int [400040]' to 'node*'
0_0_37355382_4038.cpp: In function 'int findleft(node*, int, int)':
0_0_37355382_4038.cpp:148:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
     if (t[x << 1].fmax >= c) return findleft(t, c, x << 1);
                           ^
0_0_37355382_4038.cpp:149:40: error: invalid operands of types 'int [2]' and 'int [2]' to binary 'operator+'
     if (t[x << 1].rmax + t[x << 1 | 1].lmax >= c) return t[x << 1].r - t[x << 1].rmax + 1;
                                        ^
0_0_37355382_4038.cpp:149:82: error: invalid operands of types 'int' and 'int [2]' to binary 'operator-'
     if (t[x << 1].rmax + t[x << 1 | 1].lmax >= c) return t[x << 1].r - t[x << 1].rmax + 1;
                                                                                  ^
0_0_37355382_4038.cpp: In function 'void modify(int, int, int, int)':
0_0_37355382_4038.cpp:162:20: error: request for member 'l' in 't1[x]', which is of non-class type 'int'
     if (l <= t1[x].l && r >= t1[x].r) {
                    ^
0_0_37355382_4038.cpp:162:36: error: request for member 'r' in 't1[x]', which is of non-class type 'int'
     if (l <= t1[x].l && r >= t1[x].r) {
                                    ^
0_0_37355382_4038.cpp:163:22: error: invalid conversion from 'int' to 'node*' [-fpermissive]
         pushdown(t1[x], c), pushdown(t2[x], c);
                      ^
0_0_37355382_4038.cpp:124:6: note: initializing argument 1 of 'void pushdown(node*, int)'
 void pushdown(node t[], int x) {
      ^
0_0_37355382_4038.cpp:163:42: error: invalid conversion from 'int' to 'node*' [-fpermissive]
         pushdown(t1[x], c), pushdown(t2[x], c);
                                          ^
0_0_37355382_4038.cpp:124:6: note: initializing argument 1 of 'void pushdown(node*, int)'
 void pushdown(node t[], int x) {
      ^
0_0_37355382_4038.cpp:166:19: error: no matching function for call to 'pushdown(int [400040], int&)'
     pushdown(t1, x), pushdown(t2, x);
                   ^
0_0_37355382_4038.cpp:166:19: note: candidates are:
0_0_37355382_4038.cpp:12:6: note: void pushdown(int, node&, int)
 void pushdown(int id, node& op, int lazy) { //id用于区分基友和女神
      ^
0_0_37355382_4038.cpp:12:6: note:   candidate expects 3 arguments, 2 provided
0_0_37355382_4038.cpp:22:6: note: void pushdown(int)
 void pushdown(int x) {
      ^
0_0_37355382_4038.cpp:22:6: note:   candidate expects 1 argument, 2 provided
0_0_37355382_4038.cpp:119:6: note: void pushdown(node&, int)
 void pushdown(node& op, int lazy) {
      ^
0_0_37355382_4038.cpp:119:6: note:   no known conversion for argument 1 from 'int [400040]' to 'node&'
0_0_37355382_4038.cpp:124:6: note: void pushdown(node*, int)
 void pushdown(node t[], int x) {
      ^
0_0_37355382_4038.cpp:124:6: note:   no known conversion for argument 1 from 'int [400040]' to 'node*'
0_0_37355382_4038.cpp:166:36: error: no matching function for call to 'pushdown(int [400040], int&)'
     pushdown(t1, x), pushdown(t2, x);
                                    ^
0_0_37355382_4038.cpp:166:36: note: candidates are:
0_0_37355382_4038.cpp:12:6: note: void pushdown(int, node&, int)
 void pushdown(int id, node& op, int lazy) { //id用于区分基友和女神
      ^
0_0_37355382_4038.cpp:12:6: note:   candidate expects 3 arguments, 2 provided
0_0_37355382_4038.cpp:22:6: note: void pushdown(int)
 void pushdown(int x) {
      ^
0_0_37355382_4038.cpp:22:6: note:   candidate expects 1 argument, 2 provided
0_0_37355382_4038.cpp:119:6: note: void pushdown(node&, int)
 void pushdown(node& op, int lazy) {
      ^
0_0_37355382_4038.cpp:119:6: note:   no known conversion for argument 1 from 'int [400040]' to 'node&'
0_0_37355382_4038.cpp:124:6: note: void pushdown(node*, int)
 void pushdown(node t[], int x) {
      ^
0_0_37355382_4038.cpp:124:6: note:   no known conversion for argument 1 from 'int [400040]' to 'node*'
0_0_37355382_4038.cpp:167:21: error: request for member 'l' in 't1[x]', which is of non-c


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-09-20 01:58:38, Gzip enabled