fork download
  1.  
  2. #include <stdio.h>
  3. void main() {
  4. int i,j,k,t=0;
  5. clrscr();
  6. for (i=1; i<=5; i++) {
  7. for (k=t; k<5; k++) {
  8. printf(" ");
  9. }
  10. for (j=0; j< i; j++) {
  11. printf(" * ");
  12. t = t + 1;
  13. }
  14. printf("\n");
  15. }
  16. getch();
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:3:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
 void main() {
      ^~~~
prog.c: In function ‘main’:
prog.c:5:2: warning: implicit declaration of function ‘clrscr’ [-Wimplicit-function-declaration]
  clrscr();
  ^~~~~~
prog.c:16:2: warning: implicit declaration of function ‘getch’ [-Wimplicit-function-declaration]
  getch();
  ^~~~~
/home/IbVkjK/ccXPq4og.o: In function `main':
prog.c:(.text.startup+0x1c): undefined reference to `clrscr'
prog.c:(.text.startup+0x7b): undefined reference to `getch'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty