我在不同的IDE上运行了此代码,并获得了成功。由于某种原因,我在Xcode上收到上述错误消息。我认为我缺少某种标题,但是我不确定哪个标题。
#include <iostream>
#include <limits>
#include <string>
#include <vector>
int main() {
vector<string> listRestaurants; //here is where the semantic error appears
return 0;
}
Run Code Online (Sandbox Code Playgroud)