So if you have been coding for a while, you see people discover bugs in g++ every now and then, for example: this, that, this and that.
In this comment regarding IOI, andreyv said "On IOI they will most likely use the Linux distribution's default GCC, which was tested to build the numerous distribution's packages" and we should not worry about it.
But g++ is also widely used in ACM regionals, which is setup by some hosting university.
So, I have few questions:
- Is there any way that we can avoid compiler issues when writing code? e.g. Avoid some specific/strange coding pattern? Pray to god?
- How likely do you think that this can actually happen in a contest and affect someone?
- Do you know / have been involved in preparing ACM contests & know if people carefully select compiler version?