Submission #13962
ソースコード
ステータス
コンパイルメッセージ
./Main.c:3:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
main(){
^
./Main.c: In function ‘main’:
./Main.c:4:1: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);
^
./Main.c:4:1: warning: incompatible implicit declaration of built-in function ‘scanf’
./Main.c:4:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
./Main.c:4:23: error: ‘a’ undeclared (first use in this function)
scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);
^
./Main.c:4:23: note: each undeclared identifier is reported only once for each function it appears in
./Main.c:4:26: error: ‘b’ undeclared (first use in this function)
scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);
^
./Main.c:4:29: error: ‘c’ undeclared (first use in this function)
scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);
^
./Main.c:4:32: error: ‘d’ undeclared (first use in this function)
scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);
^
./Main.c:4:35: error: ‘e’ undeclared (first use in this function)
scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);
^
./Main.c:4:38: error: ‘f’ undeclared (first use in this function)
scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);
^
./Main.c:5:1: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
printf("%d\n",a+b+c+d+e+f-min(a,min(b,min(c,d)))-min(e,f));
^
./Main.c:5:1: warning: incompatible implicit declaration of built-in function ‘printf’
./Main.c:5:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
セット
テストケース