fork download
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. int a,b,c,d;
  5. printf("화면 좌측 아래의 좌표를 입력하시오.(x좌표 y좌표 순으로 입력하시오)\n“);
  6. scanf("%d %d",&a,&b);
  7. printf("화면 우측 위의 좌표를 입력하시오.(x좌표 y좌표 순으로 입력하시오)\n“);
  8. scanf("%d %d",&c,&d);
  9. printf("좌표 사이의 거리의 제곱은 : %d \n ", (c-a)(c-a)+(d-b)(d-b)
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:5:9: warning: missing terminating " character
  printf("화면 좌측 아래의 좌표를 입력하시오.(x좌표 y좌표 순으로 입력하시오)\n“);
         ^
prog.c:5:2: error: missing terminating " character
  printf("화면 좌측 아래의 좌표를 입력하시오.(x좌표 y좌표 순으로 입력하시오)\n“);
  ^
prog.c:6:22: error: expected ')' before ';' token
  scanf("%d %d",&a,&b);
                      ^
prog.c:7:9: warning: missing terminating " character
  printf("화면 우측 위의 좌표를 입력하시오.(x좌표 y좌표 순으로 입력하시오)\n“);
         ^
prog.c:7:2: error: missing terminating " character
  printf("화면 우측 위의 좌표를 입력하시오.(x좌표 y좌표 순으로 입력하시오)\n“);
  ^
prog.c:6:2: warning: passing argument 1 of 'printf' makes pointer from integer without a cast
  scanf("%d %d",&a,&b);
  ^
In file included from prog.c:1:0:
/usr/include/stdio.h:362:12: note: expected 'const char * __restrict__' but argument is of type 'int'
 extern int printf (const char *__restrict __format, ...);
            ^
prog.c:10:1: error: expected declaration or statement at end of input
 }
 ^
prog.c:4:12: warning: unused variable 'd' [-Wunused-variable]
  int a,b,c,d;
            ^
prog.c:4:10: warning: unused variable 'c' [-Wunused-variable]
  int a,b,c,d;
          ^
prog.c:10:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
stdout
Standard output is empty