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_39102935_4348.cpp:4:1: error: expected identifier before 'int'
    4 | int add[MAXN<<2],se[MAXN<<2],mul[MAXN<<2];
      | ^~~
0_0_39102935_4348.cpp:3:1: error: two or more data types in declaration of 'add'
    3 | struct
      | ^~~~~~
0_0_39102935_4348.cpp:3:1: error: two or more data types in declaration of 'se'
0_0_39102935_4348.cpp:3:1: error: two or more data types in declaration of 'mul'
0_0_39102935_4348.cpp: In function 'void build(int, int, int)':
0_0_39102935_4348.cpp:12:5: error: 'add' was not declared in this scope
   12 |     add[rt] = se[rt] = 0,mul[rt] = 1;
      |     ^~~
0_0_39102935_4348.cpp:12:15: error: 'se' was not declared in this scope
   12 |     add[rt] = se[rt] = 0,mul[rt] = 1;
      |               ^~
0_0_39102935_4348.cpp:12:26: error: 'mul' was not declared in this scope
   12 |     add[rt] = se[rt] = 0,mul[rt] = 1;
      |                          ^~~
0_0_39102935_4348.cpp: In function 'void pushdown(int, int)':
0_0_39102935_4348.cpp:23:8: error: 'se' was not declared in this scope
   23 |     if(se[rt]){
      |        ^~
0_0_39102935_4348.cpp:25:9: error: 'add' was not declared in this scope
   25 |         add[rt<<1] = add[rt<<1|1] = 0;
      |         ^~~
0_0_39102935_4348.cpp:26:9: error: 'mul' was not declared in this scope
   26 |         mul[rt<<1] = mul[rt<<1|1] = 1;
      |         ^~~
0_0_39102935_4348.cpp:36:8: error: 'mul' was not declared in this scope
   36 |     if(mul[rt] != 1) {
      |        ^~~
0_0_39102935_4348.cpp:39:12: error: 'add' was not declared in this scope
   39 |         if(add[rt << 1])
      |            ^~~
0_0_39102935_4348.cpp:41:12: error: 'add' was not declared in this scope
   41 |         if(add[rt << 1 | 1])
      |            ^~~
0_0_39102935_4348.cpp:52:8: error: 'add' was not declared in this scope
   52 |     if(add[rt]) {
      |        ^~~
0_0_39102935_4348.cpp: In function 'void update(int, int, int, int, int, int, int)':
0_0_39102935_4348.cpp:68:13: error: 'se' was not declared in this scope
   68 |             se[rt] = c;
      |             ^~
0_0_39102935_4348.cpp:69:13: error: 'add' was not declared in this scope
   69 |             add[rt] = 0;
      |             ^~~
0_0_39102935_4348.cpp:70:13: error: 'mul' was not declared in this scope; did you mean 'ul'?
   70 |             mul[rt] = 1;
      |             ^~~
      |             ul
0_0_39102935_4348.cpp:75:13: error: 'mul' was not declared in this scope; did you mean 'ul'?
   75 |             mul[rt] = (mul[rt] * c) % MOD;
      |             ^~~
      |             ul
0_0_39102935_4348.cpp:76:16: error: 'add' was not declared in this scope
   76 |             if(add[rt])
      |                ^~~
0_0_39102935_4348.cpp:82:13: error: 'add' was not declared in this scope
   82 |             add[rt] += 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-11-25 19:27:14, Gzip enabled