clang: error: linker command failed with exit code 1 (use -v to see invocation)使用vscode第一次调用函数,就出现了以下问题,求解决
max函数你只有申明,没有实现啊后面增加max函数的实现:
int max(int x,int y) { if(x>y) return x; return y; }
你20行的 max函数没有定义