to know about compilation error | Sololearn: Learn to code for FREE!


to know about compilation error

tell me what to for compilation error in the program

4/27/2017 5:02:37 PM


13 Answers

New Answer


ooh.. how you can run a c++ Program without main() Function.. main is the entry point.. write just before opening curly brass int main () ... and compile it :-)


If there is something wrong with syntax, it is a compiler error


thank you


no int main () Also, there is space b/w return and 0


meaning for fatal error


#include <iostream.h> #include<conio.h> { int a=1,i=1; for(i=1;i<=5;i++) cout<<i; i++; return0; }



can you tell me clearly


in this what error made


You should paste your code into the playground. It would be easier to help you.


@aswathaman why <conio.h>?


give space b/w return and 0 it will work.. :-) return is keyword.


A compile time error is a problem such as a syntax error or missing file reference that prevents the program from successfully compiling. it happens before the code conversation from human readable language to machine machine language.. probably typos and missing colon etc..