fork download
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. int valor;
  5.  
  6. for(int i = 1; i <= 5; i++){
  7. printf("Valor %d: ", i);
  8. scanf("%s", &valor);
  9. printf("%d\n", valor);
  10. }
  11. return 0;
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:8:15: error: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int *’ [-Werror=format=]
       scanf("%s", &valor);
              ~^   ~~~~~~
              %ls
cc1: all warnings being treated as errors
stdout
Standard output is empty