‘inet_pton’ was not declared in this scope
缺少头文件

#include <arpa/inet.h>