0_0_39548413_9789.cpp:6:17: error: 'll' does not name a type
6 | int ls, rs; ll sum, tag;
| ^~
0_0_39548413_9789.cpp: In constructor 'Node::Node()':
0_0_39548413_9789.cpp:8:30: error: 'sum' was not declared in this scope
8 | inline Node() {ls = rs = sum = tag = 0;}
| ^~~
0_0_39548413_9789.cpp:8:36: error: 'tag' was not declared in this scope
8 | inline Node() {ls = rs = sum = tag = 0;}
| ^~~
0_0_39548413_9789.cpp: In member function 'void Node::del()':
0_0_39548413_9789.cpp:9:34: error: 'sum' was not declared in this scope
9 | inline void del() {ls = rs = sum = tag = 0;}
| ^~~
0_0_39548413_9789.cpp:9:40: error: 'tag' was not declared in this scope
9 | inline void del() {ls = rs = sum = tag = 0;}
| ^~~
0_0_39548413_9789.cpp: At global scope:
0_0_39548413_9789.cpp:13:24: error: 'll' does not name a type
13 | int rt, pcnt, nprm[M]; ll a[N];
| ^~
0_0_39548413_9789.cpp: In function 'void pushup(int)':
0_0_39548413_9789.cpp:34:10: error: 'struct Node' has no member named 'sum'
34 | p[k].sum = p[ls].sum + p[rs].sum;
| ^~~
0_0_39548413_9789.cpp:34:22: error: 'struct Node' has no member named 'sum'
34 | p[k].sum = p[ls].sum + p[rs].sum;
| ^~~
0_0_39548413_9789.cpp:34:34: error: 'struct Node' has no member named 'sum'
34 | p[k].sum = p[ls].sum + p[rs].sum;
| ^~~
0_0_39548413_9789.cpp:35:15: error: 'struct Node' has no member named 'tag'
35 | if (p[ls].tag && p[ls].tag == p[rs].tag)
| ^~~
0_0_39548413_9789.cpp:35:28: error: 'struct Node' has no member named 'tag'
35 | if (p[ls].tag && p[ls].tag == p[rs].tag)
| ^~~
0_0_39548413_9789.cpp:35:41: error: 'struct Node' has no member named 'tag'
35 | if (p[ls].tag && p[ls].tag == p[rs].tag)
| ^~~
0_0_39548413_9789.cpp:36:12: error: 'struct Node' has no member named 'tag'
36 | p[k].tag = p[ls].tag;
| ^~~
0_0_39548413_9789.cpp:36:24: error: 'struct Node' has no member named 'tag'
36 | p[k].tag = p[ls].tag;
| ^~~
0_0_39548413_9789.cpp:37:15: error: 'struct Node' has no member named 'tag'
37 | else p[k].tag = 0;
| ^~~
0_0_39548413_9789.cpp: At global scope:
0_0_39548413_9789.cpp:40:26: error: 'll' has not been declared
40 | inline void cover(int k, ll x, int l, int r) {
| ^~
0_0_39548413_9789.cpp: In function 'void cover(int, int, int, int)':
0_0_39548413_9789.cpp:41:10: error: 'struct Node' has no member named 'tag'
41 | p[k].tag = x, p[k].sum = 1ll * (r - l + 1) * x;
| ^~~
0_0_39548413_9789.cpp:41:24: error: 'struct Node' has no member named 'sum'
41 | p[k].tag = x, p[k].sum = 1ll * (r - l + 1) * x;
| ^~~
0_0_39548413_9789.cpp: In function 'void pushdown(int, int, int)':
0_0_39548413_9789.cpp:46:14: error: 'struct Node' has no member named 'tag'
46 | if (p[k].tag) {
| ^~~
0_0_39548413_9789.cpp:47:32: error: 'struct Node' has no member named 'tag'
47 | if (ls) cover(ls, p[k].tag, l, mid);
| ^~~
0_0_39548413_9789.cpp:48:32: error: 'struct Node' has no member named 'tag'
48 | if (rs) cover(rs, p[k].tag, mid + 1, r);
| ^~~
0_0_39548413_9789.cpp: In function 'void build(int&, int, int)':
0_0_39548413_9789.cpp:54:23: error: 'struct Node' has no member named 'tag'
54 | if (l == r) {p[k].tag = p[k].sum = a[l]; return;}
| ^~~
0_0_39548413_9789.cpp:54:34: error: 'struct Node' has no member named 'sum'
54 | if (l == r) {p[k].tag = p[k].sum = a[l]; return;}
| ^~~
0_0_39548413_9789.cpp:54:40: error: 'a' was not declared in this scope
54 | if (l == r) {p[k].tag = p[k].sum = a[l]; return;}
| ^
0_0_39548413_9789.cpp: At global scope:
0_0_39548413_9789.cpp:60:49: error: 'll' has not been declared
60 | void recover(int k, int l, int r, int x, int y, ll c) {
| ^~
0_0_39548413_9789.cpp: In function 'void recover(int, int, int, int, int, int)':
0_0_39548413_9789.cpp:65:10: error: 'struct Node' has no member named 'tag'
65 | p[k].tag = 0; pushup(k);
| ^~~
0_0_39548413_9789.cpp: In function 'void Change_to_Phi(int, int, int, int, int)':
0_0_39548413_9789.cpp:69:34: error: 'struct Node' has no member named 'tag'
69 | if (x <= l && r <= y && p[k].tag) {
| ^~~
0_0_39548413_9789.cpp:70:27: error: 'struct Node' has no member named 'tag'
70 | cover(k, phi[p[k].tag], l, r); return;
| ^~~
0_0_39548413_9789.cpp: At global scope:
0_0_39548413_9789.cpp:78:1: error: 'll' does not name a type
78 | ll query(int k, int l, int r, int x, int y) {
| ^~
0_0_39548413_9789.cpp: In function 'int main()':
0_0_39548413_9789.cpp:87:19: error: 'scanf' was not declared in this scope
87 | Get_Phi(1e7); scanf("%d", &T);
| ^~~~~
0_0_39548413_9789.cpp:91:24: error: 'a' was not declared in this scope
91 | scanf("%d", &a[i]);
| ^
0_0_39548413_9789.cpp:98:37: error: 'query' was not declared in this scope
98 | } else printf("%lld\n", query(rt, 1, n, l, r));
| ^~~~~
0_0_39548413_9789.cpp:98:20: error: 'printf' was not declared in this scope
98 | } else printf("%lld\n", query(rt, 1, n, l, r));
| ^~~~~~
0_0_39548413_9789.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | const int N = 700010;
|