prog.c: In function ‘main’:
prog.c:45:2: warning: implicit declaration of function ‘srand’ [-Wimplicit-function-declaration]
srand((unsigned)time(NULL));
^~~~~
prog.c:50:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(i=0;i<n;i++)
^~~
prog.c:52:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
scanf("%i",&j);
^~~~~
prog.c:53:28: warning: implicit declaration of function ‘rand’ [-Wimplicit-function-declaration]
insere_empura(&lista_1,j,rand()%lista_1->tamanho);
^~~~
prog.c:53:42: error: invalid type argument of ‘->’ (have ‘lista {aka struct <anonymous>}’)
insere_empura(&lista_1,j,rand()%lista_1->tamanho);
^~
prog.c: At top level:
prog.c:57:1: error: expected identifier or ‘(’ before ‘}’ token
}
^
prog.c: In function ‘criar_lista’:
prog.c:23:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
prog.c: In function ‘insere_empura’:
prog.c:31:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
prog.c: In function ‘exibir_lista’:
prog.c:39:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^