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

+13

to know about compilation error

tell me what to for compilation error in the program

4/27/2017 5:02:37 PM

aswathaman

13 Answers

New Answer

+3

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 :-)

+13

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

+13

thank you

+13

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

+12

meaning for fatal error

+11

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

+10

+9

can you tell me clearly

+9

in this what error made

+9

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

+4

@aswathaman why <conio.h>?

+2

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

+1

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..