2
Contributors
2
Replies
3
Views
4 Years
Discussion Span
Last Post by mayankjain05_1
0
scanf("%d", &t);

And

scanf("%d%d", &x[q][0], &x[q][1]);

Notice the ampersand (address-of operator). scanf() requires a pointer to an object, and you were passing some random number which was extremely unlikely to be a valid address in your address space.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.