das problem ist folgendes:
variablendeklarationen (int i; usw.) müssen VOR Init(); stehen.

int main(void)
{
int i;
Init();
...