0_0_37159518_4499.cpp:4:1: error: expected ',' or ';' before 'const'
const long long mod = 998244353;
^
0_0_37159518_4499.cpp: In function 'void pushup(int)':
0_0_37159518_4499.cpp:17:50: error: 'mod' was not declared in this scope
tr[u].val = (tr[u<<1].val + tr[u<<1|1].val ) % mod;
^
0_0_37159518_4499.cpp: In function 'void pushdown(long long int, int)':
0_0_37159518_4499.cpp:21:30: error: 'mod' was not declared in this scope
tr[u].tag = tr[u].tag * x % mod;
^
0_0_37159518_4499.cpp: In function 'void build(int, int, int)':
0_0_37159518_4499.cpp:34:22: error: 'mod' was not declared in this scope
tr[u].val = a[l] % mod;
^
0_0_37159518_4499.cpp: In function 'long long int query(int, int, int)':
0_0_37159518_4499.cpp:45:22: error: 'mod' was not declared in this scope
return tr[u].val % mod;
^
0_0_37159518_4499.cpp:50:46: error: 'mod' was not declared in this scope
if(l <= mid)res = (res + query(u<<1,l,r)) % mod;
^
0_0_37159518_4499.cpp:51:47: error: 'mod' was not declared in this scope
if(r > mid)res = (res + query(u<<1|1,l,r)) % mod;
^
0_0_37159518_4499.cpp:52:15: error: 'mod' was not declared in this scope
return res % mod;
^
0_0_37159518_4499.cpp: In function 'void modify(int, int, int)':
0_0_37159518_4499.cpp:57:32: error: 'mod' was not declared in this scope
tr[u].val = tr[u].val * 2 % mod;
^
0_0_37159518_4499.cpp:65:16: error: 'mod' was not declared in this scope
tr[u].val %= mod;
^
|