実行環境
C++

C++の環境

C++のバージョン

$ g++ --version
g++ (Homebrew GCC 13.2.0) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
./vscode/c_cpp_properties.json
{
  "configurations": [
    {
      "name": "Mac",
      "includePath": ["${workspaceFolder}/**", "/usr/local/include/**"],
      "defines": [],
      "macFrameworkPath": [
        "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"
      ],
      "compilerPath": "/usr/local/bin/g++",
      "cStandard": "c17",
      "cppStandard": "c++17",
      "intelliSenseMode": "macos-gcc-arm64"
    }
  ],
  "version": 4
}

ディレクトリ構成

        • main.cpp
  • テンプレート

    main.cpp
    #include <bits/stdc++.h>
    using namespace std;
    #define rep(i, a, n) for(int i = a; i < n; i++)
    #define rrep(i, a, n) for(int i = a; i >= n; i--)
    #define ll long long
     
    int main() {
        
    }