prog.c: In function 'main':
prog.c:5:5: error: unknown type name 'cher'
cher A;
^
prog.c:11:15: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int *' [-Wformat=]
scanf("%d %s", &Q[i], &A);
^
prog.c:14:15: warning: comparison between pointer and integer
if (A == "C")
^
prog.c:14:15: warning: comparison with string literal results in unspecified behavior [-Waddress]
prog.c:19:20: warning: comparison between pointer and integer
else if (A == "S")
^
prog.c:19:20: warning: comparison with string literal results in unspecified behavior [-Waddress]
prog.c:24:20: warning: comparison between pointer and integer
else if (A == "R")
^
prog.c:24:20: warning: comparison with string literal results in unspecified behavior [-Waddress]
prog.c:35:12: warning: format '%lf' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
printf("Percentual de coelhos: %.2lf %\n", c*100/T);
^
prog.c:35:12: warning: unknown conversion type character 0xa in format [-Wformat=]
prog.c:36:12: warning: format '%lf' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
printf("Percentual de ratos: %.2lf %\n", r*100/T);
^
prog.c:36:12: warning: unknown conversion type character 0xa in format [-Wformat=]
prog.c:37:12: warning: format '%lf' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
printf("Percentual de sapos: %.2lf %\n", s*100/T);
^
prog.c:37:12: warning: unknown conversion type character 0xa in format [-Wformat=]