prog.c: In function ‘cek’:
prog.c:8:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
for(int i=0; i<strlen(kalimat[a]); i++){
^
prog.c:8:2: note: use option -std=c99 or -std=gnu99 to compile your code
prog.c: In function ‘main’:
prog.c:27:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
for(int i=0; i<t; i++){
^
prog.c:32:10: error: redefinition of ‘i’
for(int i=0; i<t; i++){
^
prog.c:27:10: note: previous definition of ‘i’ was here
for(int i=0; i<t; i++){
^
prog.c:32:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
for(int i=0; i<t; i++){
^
prog.c:20:9: warning: unused variable ‘total’ [-Wunused-variable]
int t, total=0;
^