vol = overload.test(25.2,36.2) ;你一开始编译器确认为overload.test(int,int);
是没有返回值的。要不你把void test(int,int)删去