Ubuntu用gcc跑程序总回报"collect2: fatal error: ld terminated with signal 11 [段错误], core dumped compilation terminated."这个错

就连helloworld都跑不了
#include
using namespace std;
int main()
{
cout<<"hello word"<<endl;
return 0;
}
报下面这种错

图片说明

但是跑Python不会报错

图片说明

gcc卸载重装过也没用