Segmentation Fault не доходя до main?
struct win **window;
printf("here");
initwin(*window, 100, 100, default_display);
for(;;) {...}
while(true) {...}
do {...} while(true)
int i, a, n, j, b, d;
int x[i];
for(d=0; d < n; d++)
x[i] = rand();
printf("%d", x[i]);
system("chcp 1251");
system("cls");
system("title Pr101");
system("Color F0");