小编Nat*_*ale的帖子

Xcode C ++向量:未定义模板的隐式实例化

我在不同的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)

c++ xcode header vector implicit

6
推荐指数
4
解决办法
5315
查看次数

标签 统计

c++ ×1

header ×1

implicit ×1

vector ×1

xcode ×1