fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int per;
  5. clrscr();
  6. printf("write your percentage here:\n");
  7. scanf("%f",per);
  8. if (per>36)
  9. printf("Pass");
  10. else
  11. printf("fail");
  12. return 0;
  13. }
  14.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:5:2: warning: implicit declaration of function ‘clrscr’ [-Wimplicit-function-declaration]
  clrscr();
  ^~~~~~
prog.c:7:10: warning: format ‘%f’ expects argument of type ‘float *’, but argument 2 has type ‘int’ [-Wformat=]
  scanf("%f",per);
          ^
prog.c:7:2: warning: ‘per’ is used uninitialized in this function [-Wuninitialized]
  scanf("%f",per);
  ^~~~~~~~~~~~~~~
/home/aDeUyX/ccQsIRWB.o: In function `main':
prog.c:(.text.startup+0x7): undefined reference to `clrscr'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty