Codevita - Typical mistakes people make and how to correct them
Hello friends!!! In this post, we will deal with primarily three kinds of errors which are a source frustration to many. Compile Time Error:- Why isn't my program compiling on the Server? Runtime Error:- What Wrong did my program do? Wrong Answer:- How can my answer be wrong? Question that gets asked the most, typically by first time users is - Code compiles fine on my machine. Why does the system say Compile Time Error? Before diving deeper, ask yourself these questions 1) Am I using the same compiler as the server-side? 2) Is my IDE adding any switches to the compilation option? Do I know all the switches my IDE is using? Are they matching the server-side switches. The Server-side switches are C :- gcc -Wall -lm $file C++ :- g++ -Wall -lm $file Java :- javac -J-Xms8m -J-Xmx8m -Xlint:none -XDsuppressNotes $file Csharp :- mcs -warn:0 $file CodeVita syst...