실행 실패 (제출 코드 컴파일 에러)
Main.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | main(b){long a,b;scanf("%d%d",&a,&b);printf("%d\n%d",a/b,a%b);} | ^~~~ Main.c: In function ‘main’: Main.c:1:1: warning: type of ‘b’ defaults to ‘int’ [-Wimplicit-int] Main.c:1:16: error: ‘b’ redeclared as different kind of symbol 1 | main(b){long a,b;scanf("%d%d",&a,&b);printf("%d\n%d",a/b,a%b);} | ^ Main.c:1:1: note: previous definition of ‘b’ with type ‘int’ 1 | main(b){long a,b;scanf("%d%d",&a,&b);printf("%d\n%d",a/b,a%b);} | ^~~~ Main.c:1:18: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | main(b){long a,b;scanf("%d%d",&a,&b);printf("%d\n%d",a/b,a%b);} | ^~~~~ Main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | main(b){long a,b;scanf("%d%d",&a,&b);printf("%d\n%d",a/b,a%b);} Main.c:1:18: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | main(b){long a,b;scanf("%d%d",&a,&b);printf("%d\n%d",a/b,a%b);} | ^~~~~ Main.c:1:18: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ Main.c:1:26: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long int *’ [-Wformat=] 1 | main(b){long a,b;scanf("%d%d",&a,&b);printf("%d\n%d",a/b,a%b);} | ~^ ~~ | | | | | long int * | int * | %ld Main.c:1:28: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] 1 | main(b){long a,b;scanf("%d%d",&a,&b);printf("%d\n%d",a/b,a%b);} | ~^ ~~ | | | | int * long int * | %ld Main.c:1:38: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 1 | main(b){long a,b;scanf("%d%d",&a,&b);printf("%d\n%d",a/b,a%b);} | ^~~~~~ Main.c:1:38: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ Main.c:1:38: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch] Main.c:1:38: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ Main.c:1:47: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] 1 | main(b){long a,b;scanf("%d%d",&a,&b);printf("%d\n%d",a/b,a%b);} | ~^ ~~~ | | | | int long int | %ld Main.c:1:51: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] 1 | main(b){long a,b;scanf("%d%d",&a,&b);printf("%d\n%d",a/b,a%b);} | ~^ ~~~ | | | | int long int | %ld
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.