你这好多错误啊第一二行都多了个“;”第一行后面要加一句using namespace std;你再试试看 declaration terminater incorrectly.的意思是你main函数没有函数体你就写;结束了