应该加 string.h 或者 cstring 而不是 string
上面说的是正确的,说明你文件名字写错了呗!在竞赛中也可以使用#include <bits/stdc++.h> 这样会把一些常见的都引进来