undefined reference to pointer c++

C++
#include <iostream>
int func1();
int main()
{
     
    func1();
}

Source

Also in C++: