0_0_20829202_17904.cpp: In function 'int main()': 0_0_20829202_17904.cpp:45:16: error: 'Q' was not declared in this scope scanf("%d", &Q); ^