0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

コードの静的解析を導入したい[競プロ][Windows]

Last updated at Posted at 2025-08-24

はじめに

環境構築など、さっさと終わらせてしまいましょう!Windowsではない読者さんは、違う記事をあたってください。
編集リクエスト募集しています。

1. テキストエディタを入れる

VSCodeをお願いします。(Vimの設定方法は知らないため)
そしたら、C/C++という拡張機能を入れてください!これはIntellisenseというかつて存在した解析用の拡張機能を吸収したものです。

2. Complierを入れる

コードを読んで実行可能なファイルを作成するやつのことです。
C++20以上対応のを入れたい方は、MSYS2をダウンロードした後に、そのCLIにこれを入力しましょう。

MYSYS2
pacman -S mingw-w64-ucrt-x86_64-clang mingw-w64-ucrt-x86_64-gcc

そしてこれをパスに登録します。(説明割愛しますスミマセン)

path
C:\msys64\ucrt64\bin

そしたら、最後にこのレポジトリをクローンしてください!

clone
git clone https://github.com/TrueRyoB/AlgoSubmission.git

image.png

そしたら終わりです!

何に詰まっていたか

settings.jsonの最後のフラグがdisabledになぜか設定されていました。この発見が遅れました...

おまけ

テンプレート用のファイルです。

template.cpp
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
#define int long long

int32_t main() {
    ios::sync_with_stdio(false);
	cin.tie(nullptr);
    

    return 0;
}

まとめ

強くなるには、本当に大事なことにのみ時間を費やすべきです。環境構築などというどうでもいいことは、なるべくさっさと終わらせるべきなのです。
以下がまだ終わっていない環境設定の一部になります。

まあ、気が向いたらで構いません。精進がんばってください!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?