I code in JAVA. Recently, in a CodeForces contest, I went on hacking a solution and discovered a C++ code that might face an array index out of bound error but it didn't. Later found out that there is no array index out of bound error in C++ and needs to be taken care of while coding. Due to this, my hack was unsuccessful. Basically my question is what things I need to take care of while hacking a C++ code if I code in other language? Do I need to start coding in other language? Most of the coders use C++ so I find it difficult to find a JAVA solution to hack.