fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. //your code goes here
  5. int dan,i;
  6. printf("[구구단 출력]\n\n");
  7. printf("몇 단을 출력 하시겠사옵니까? ")
  8. scanf("%d",&dan);
  9. for(i=1;i<10;i++)
  10. printf("%d&%d-%d\n ");
  11. return 0:
  12. }
Compilation error #stdin compilation error #stdout 0s 9432KB
stdin
3
compilation info
prog.c: In function ‘main’:
prog.c:8:2: error: expected ‘;’ before ‘scanf’
  scanf("%d",&dan);
  ^~~~~
prog.c:10:14: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
     printf("%d&%d-%d\n ");
              ^
prog.c:10:17: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
     printf("%d&%d-%d\n ");
                 ^
prog.c:10:20: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
     printf("%d&%d-%d\n ");
                    ^
prog.c:11:13: error: expected ‘;’ before ‘:’ token
     return 0:
             ^
prog.c:5:6: warning: unused variable ‘dan’ [-Wunused-variable]
  int dan,i;
      ^~~
stdout
Standard output is empty