我第一次使用vscode遇到的问题

问题遇到的现象和发生背景

第一次使用vscode

问题相关代码,请勿粘贴截图
运行结果及报错内容

找不到build

我的解答思路和尝试过的方法

img


img

我想要达到的结果
#include <iostream>
#include <vector>
#include <string>

using namespace std;

int main()
{
    vector<string> msg {"Hello", "C++", "World", "from", "VS Code", "and the C++ extension!哈哈哈成功"};

    for (const string& word : msg)
    {
        cout << word << " ";
    }
    cout << endl;
}

launch.json中的"preLaunchTask"中要填入task.json中对应的label。