fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int testinteger
  6. printf("enter the testinteger");
  7. scanf("%d",&testinteger);
  8. printf("the testinteger is %D",testinteger);
  9. return 0;
  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:2: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘printf’
  printf("enter the testinteger");
  ^~~~~~
prog.c:7:14: error: ‘testinteger’ undeclared (first use in this function)
  scanf("%d",&testinteger);
              ^~~~~~~~~~~
prog.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
stdout
Standard output is empty