met.cpp:24:8: error: 'offa' was not declared in this scope
ll laz[offa<<1];
^~~~
met.cpp:24:8: note: suggested alternative: 'off'
ll laz[offa<<1];
^~~~
off
met.cpp: In function 'void upd(int, int, int)':
met.cpp:28:5: error: 'laz' was not declared in this scope
laz[l]+=v;
^~~
met.cpp:31:13: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
if(l&1^1)laz[l+1]+=v;
~^~
met.cpp: In function 'll qry(int)':
met.cpp:40:16: error: 'laz' was not declared in this scope
ret += laz[i];
^~~
met.cpp: In function 'int main()':
met.cpp:73:39: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
for(int j = 0; j < k; j++)qu[i&1^1][j].clear();
~^~
met.cpp:91:25: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
qu[i&1^1][(lo[v]+hi[v])>>1].push_back(v);
~^~
met.cpp:51:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
~~~~~^~~~~~~~~~~~~~~~
met.cpp:54:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", a + i); --a[i];
~~~~~^~~~~~~~~~~~~
met.cpp:59:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", cap + i);
~~~~~^~~~~~~~~~~~~~~
met.cpp:60:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &k);
~~~~~^~~~~~~~~~
met.cpp:63:55: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", l + i, r + i, add + i), --l[i], --r[i];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~