运行这段代码有时程序会报错,主函数返回值为-1073740771
win11,vs2022
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <graphics.h>
#include <conio.h>
using namespace std;
int main()
{
initgraph(1600, 900);
closegraph();
system("pause");
initgraph(800, 400);
closegraph();
return 0;
}