0_0_16229298_29579.cpp:6:1: error: 'pair' does not name a type pair <int, int> q[1005]; ^ 0_0_16229298_29579.cpp: In function 'int main()': 0_0_16229298_29579.cpp:31:40: error: 'y' was not declared in this scope a[++r] = j; b[r] = y; ^