关于以下 C++代码,说法正确的是( )。
int main() { greet(); return 0; } void greet() { cout << "Hello!" << endl; }
正确编译并输出 Hello!
编译错误:找不到函数 greet()
编译警告但可以运行
链接错误