fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. printf("What is your name? Ashley");
  5. scanf("%s", Ashley);
  6. printf("Hello there, %s\n", Ashley)
  7. return 0;
  8. }
  9.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
10
compilation info
prog.c: In function ‘main’:
prog.c:5:13: error: ‘Ashley’ undeclared (first use in this function)
 scanf("%s", Ashley);
             ^~~~~~
prog.c:5:13: note: each undeclared identifier is reported only once for each function it appears in
prog.c:7:2: error: expected ‘;’ before ‘return’
  return 0;
  ^~~~~~
stdout
Standard output is empty