hello there,
started to learn the lang yesterday.
trying to compile the helloworld code.
and i get the followed errors when compiling with minigw.Code:#include <iostream> int main(); { cout << "Hello World!\n"; return 0; }
Code:helloworld.cpp:5:1: error: expected unqqualified-id before '{' tokenCode:helloworld.cpp:5:1: error: 'cout' does not name a type helloworld.cpp:6:2: error: expected unqualified-id before 'return' helloworld.cpp:7:1: error: expecteed declartion before '}' token
i'm honestly losing my sanity in this stupid error.
please provide some direct answers why this is happening, because Google could not.
thanks !