```

#include <iostream>

using namespace std;

int main() {
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);

    cout << "Start?" << endl;

    int n, m; cin >> n >> m;

    cout << n << endl;
    cout << "End?" << endl;

    return 0;
}

```

위 코드 컴파일한 다음에 실행하면 cmd, powershell, msys bash등 에선 잘 돌아가는데

git bash에서 실행할 때만 freopen으로 연 input.txt 제대로 읽지도 못하고 output.txt에 쓰지도 않음

그런데 터지는 건 또 아니고 종료까지 정상으로 됨


컴파일은 msys2 mingw g++로 했는데 대체 몬 개같은 경우일까? 영문을 모르겟네