What’s the bug ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What’s the bug ?

#include <iostream> using namespace std; intmain() { cout<<"Hello world"; return 0; } When I write that at c++ compiler it just gives me an error 🥲 what ‘s the bug ? I can’t find the problem . Help me please 🫥

30th Jun 2022, 9:08 PM
Nada Ahmed
Nada Ahmed - avatar
4 Answers
+ 1
بالعربي اكو فاصله بين تعريف int و الداله الرئيسيه main لازم تخلي
30th Jun 2022, 10:03 PM
ZAKI MAX
ZAKI MAX - avatar
+ 3
#include <iostream> using namespace std ; */ must put space between return type int and main /* int main(){ cout << " Hello World " << endl ; return 0 ; }
30th Jun 2022, 10:02 PM
ZAKI MAX
ZAKI MAX - avatar
+ 2
Is that the exact code? A whitespace is missing in "int main". What error do you get?
30th Jun 2022, 9:35 PM
Lisa
Lisa - avatar
+ 1
Thanksssss to you all 🖤.
30th Jun 2022, 10:18 PM
Nada Ahmed
Nada Ahmed - avatar