+ 1
Why it doesn't compile?
#include <iostream> using namespace std; void main() { cout << "Hello world!"; }
2 Answers
+ 9
In C++, main must return int.
int main()
{
return 0;
}
0
it is valid code. I don't know what's problem going on. one think to do
#include<upstream.h>
try it