prog.c: In function ‘main’:
prog.c:5:16: error: expected expression before ‘[’ token
float lista = [20];
^
prog.c:7:2: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]
while (cont <= 20);
^~~~~
prog.c:8:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘while’
{
^
prog.c:9:21: error: subscripted value is neither array nor pointer nor vector
scanf("%f", &lista[cont]);
^
prog.c:10:21: error: subscripted value is neither array nor pointer nor vector
printf("%f", lista[cont]);
^
prog.c:5:8: warning: variable ‘lista’ set but not used [-Wunused-but-set-variable]
float lista = [20];
^~~~~