#include<iostream>
using namespace std;
int main()
{
/*[]() {cout << "hello world" << endl; }();
[](int i) {cout << "int i : " << i << endl; }(7);
auto sum = [](auto a, auto b) {return a + b; };
cout << sum(3, 1) << endl;*/
int a = 4;
int b = 8;
int c = 6;
//같은 영역에 있는 모든 변수 접근 불가
//[]() {cout << a << endl; }();
/*[&]() {cout << a << endl; }();
[&]() { a = 5; cout << a << endl; }();*/
//[=]() {cout << b << endl; }();
[c]() {cout << c << endl; }()
}
심각도 코드 설명 프로젝트 파일 줄 비표시 오류(Suppression) 상태 오류 MSB8020 The build tools for v141 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install v141 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
번역기
심각도 코드 프로젝트 파일 비표시 오류(Suppression) 상태 오류 MSB8020 v141(Platform Toolset = 'v141')용 빌드 도구를 찾을 수 없습니다. v141 빌드 도구를 사용하여 빌드하려면 v141 빌드 도구를 설치하세요. 또는 프로젝트 메뉴를 선택하거나 솔루션을 마우스 오른쪽 버튼으로 클릭한 다음 "솔루션 대상 변경"을 선택하여 현재 Visual Studio 도구로 업그레이드할 수 있습다.