看main方法怎么写的,发出来,你可能main方法写错了或者位置放错了
#include 没有写吧
没定义main函数就定义一个呀
main方法写错了啊
public static void main(String[] args){}