int Q, A[Q], B[Q];
scanf("%d", &Q);
for(int i=0; i<Q; i++){
scanf("%d %d", &A[i], &B[i]);
}
for(int i=0; i<Q; i++){
printf("%d %d\n", A[i], B[i]); //check val
}
if I type
3
1 2
3 4
5 6
the output will be
2 2
4 4
6 6
why? pls help.