+ 13

to know about compilation error

tell me what to for compilation error in the program

27th Apr 2017, 5:02 PM
aswathaman
aswathaman - avatar
13 Antworten
+ 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 :-)
27th Apr 2017, 5:13 PM
MrBM
MrBM - avatar
+ 13
If there is something wrong with syntax, it is a compiler error
27th Apr 2017, 5:06 PM
Pixie
Pixie - avatar
+ 13
thank you
27th Apr 2017, 5:09 PM
aswathaman
aswathaman - avatar
+ 13
no int main () Also, there is space b/w return and 0
27th Apr 2017, 5:09 PM
Pixie
Pixie - avatar
+ 12
meaning for fatal error
27th Apr 2017, 5:10 PM
aswathaman
aswathaman - avatar
+ 11
#include <iostream.h> #include<conio.h> { int a=1,i=1; for(i=1;i<=5;i++) cout<<i; i++; return0; }
27th Apr 2017, 5:08 PM
aswathaman
aswathaman - avatar
+ 10
ok
27th Apr 2017, 5:09 PM
aswathaman
aswathaman - avatar
+ 9
can you tell me clearly
27th Apr 2017, 5:07 PM
aswathaman
aswathaman - avatar
+ 9
in this what error made
27th Apr 2017, 5:08 PM
aswathaman
aswathaman - avatar
+ 9
You should paste your code into the playground. It would be easier to help you.
27th Apr 2017, 5:18 PM
Manual
Manual - avatar
+ 4
@aswathaman why <conio.h>?
30th Apr 2017, 4:19 PM
Badr
Badr - avatar
+ 2
give space b/w return and 0 it will work.. :-) return is keyword.
27th Apr 2017, 5:10 PM
MrBM
MrBM - avatar
+ 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..
27th Apr 2017, 5:08 PM
MrBM
MrBM - avatar