fork download
  1. #include <stdio.h>
  2. int main()
  3. {char string[100];
  4. int c;
  5. printf ("Digite o seu nome: ");
  6. gets (string);
  7. printf ("\n\n Ola %s, string);
  8. return 0;
  9. c=getchar();
  10. }
  11.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:6:1: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
 gets (string);
 ^
prog.c:7:9: warning: missing terminating " character
 printf ("\n\n Ola %s, string);
         ^
prog.c:7:1: error: missing terminating " character
 printf ("\n\n Ola %s, string);
 ^
prog.c:8:2: error: expected expression before 'return'
  return 0;
  ^
prog.c:10:1: error: expected ';' before '}' token
 }
 ^
prog.c:4:5: warning: unused variable 'c' [-Wunused-variable]
 int c;
     ^
stdout
Standard output is empty