菜鸟笔记
提升您的技术认知

error: xxx in namespace 'std' does not name a template type

报错 "error: xxx in namespace 'std' does not name a template type"

亦或是** "error: xxx does not name a type"**

错误原因
未导入相应的头文件

解决方法
添加对应的头文件

string
#include

list
#include

vector
#include

function
#include