1) Compilation error: your declaration of gera_sequ1() is spelled incorrectly in line 10. That mean's it isn't actually declared before first use.
2) Behavioral issue with rand: You seed srand() during each iteration. You should seed once and only once in a program. Stick that at the beginning of main.