#include <iostream>
#include <cmath>
using namespace std;
int main()
{
cout << "hello world" << endl;
return 0;
}

#include <iostream>
#include <cmath>
using namespace std;
int main()
{
cout << "hello world" << endl;
return 0;
}

这个不算错误吧,程序已经运行完了,都有返回值了,只不过命令行窗口很快跳过了。如果你要看运行结果的话,在return之前加一句getchar();