ruka.cpp: In function 'void ap(int)':
ruka.cpp:14:13: error: 'x' was not declared in this scope
int nx = t[x] + dx[l][t];
^
ruka.cpp:16:34: error: 'e' was not declared in this scope
D[t].upd(s + off, -1); D[t].upd(e + off, 1);
^
ruka.cpp: In function 'void dui(int)':
ruka.cpp:22:4: error: 'x' was not declared in this scope
t[x] -= dx[--l][t];
^
ruka.cpp:25:28: error: 'e' was not declared in this scope
U[t].upd(s, -1); U[t].upd(e, 1);
^
ruka.cpp: In function 'int main()':
ruka.cpp:39:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
ruka.cpp:42:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", dx[i], dx[i] + 1);
^
ruka.cpp:52:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &q);
^
ruka.cpp:54:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %c", &t);
^
ruka.cpp:58:37: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int x[2]; scanf("%d%d", x, x + 1);
^