0_0_33677774_1595.cpp: In function 'int main()': 0_0_33677774_1595.cpp:106:30: error: 'q' was not declared in this scope while (~scanf ("%d%d", &n, &q)) ^