没见过的报错,也不知道代码该怎么写

问题遇到的现象和发生背景

没看懂这个报错,也不知道代码该怎么写,求帮忙

问题相关代码,请勿粘贴截图
#include<iostream>
using namespace std;
class clock {
    private:
        int hour,minute,second;
    public:
        clock(int m=0,int h=0,int s=0):hour(h),minute(m),second(s) {}
        void show() {
            cout<<hour<<":"<<minute<<":"<<second<<endl;
        }
        ~clock();
        clock operator++(int) {
            second++;
            if(second>=60) {
                second-=60;
                minute++;
            }
            if(minute>=60) {
                minute-=60;
                hour=(hour+1)%24;
            }
            return (*this);
        }
};
int main() {
    clock clock(11,59,58);
    clock.show();
    return 0;
}

运行结果及报错内容

img

我的解答思路和尝试过的方法
我想要达到的结果

~clock();改成
~clock() {}
析构函数没有函数体

析构函数要实现一下:~clock() {}


#include<iostream>
using namespace std;
class clocks {
private:
    int hour, minute, second;
public:
    clocks(int m = 0, int h = 0, int s = 0) :hour(h), minute(m), second(s) {}
    void show() {
        cout << hour << ":" << minute << ":" << second << endl;
    }
    ~clocks(){}
    clocks operator++(int) {
        second++;
        if (second >= 60) {
            second -= 60;
            minute++;
        }
        if (minute >= 60) {
            minute -= 60;
            hour = (hour + 1) % 24;
        }
        return (*this);
    }
};
int main() {
     clocks clok(11, 59, 58);
    clok.show();
    return 0;
}