結果
問題 | No.394 ハーフパイプ(1) |
ユーザー | 👑 testestest |
提出日時 | 2016-07-15 22:21:27 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 153 bytes |
コンパイル時間 | 225 ms |
コンパイル使用メモリ | 20,224 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-15 01:25:27 |
合計ジャッジ時間 | 670 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | x,y,n,k,i,j,p,q,r,s,a[1000]; | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int] main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘y’ [-Wimplicit-int] 1 | x,y,n,k,i,j,p,q,r,s,a[1000]; | ^ main.c:1:5: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int] 1 | x,y,n,k,i,j,p,q,r,s,a[1000]; | ^ main.c:1:7: warning: type defaults to ‘int’ in declaration of ‘k’ [-Wimplicit-int] 1 | x,y,n,k,i,j,p,q,r,s,a[1000]; | ^ main.c:1:9: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] 1 | x,y,n,k,i,j,p,q,r,s,a[1000]; | ^ main.c:1:11: warning: type defaults to ‘int’ in declaration of ‘j’ [-Wimplicit-int] 1 | x,y,n,k,i,j,p,q,r,s,a[1000]; | ^ main.c:1:13: warning: type defaults to ‘int’ in declaration of ‘p’ [-Wimplicit-int] 1 | x,y,n,k,i,j,p,q,r,s,a[1000]; | ^ main.c:1:15: warning: type defaults to ‘int’ in declaration of ‘q’ [-Wimplicit-int] 1 | x,y,n,k,i,j,p,q,r,s,a[1000]; | ^ main.c:1:17: warning: type defaults to ‘int’ in declaration of ‘r’ [-Wimplicit-int] 1 | x,y,n,k,i,j,p,q,r,s,a[1000]; | ^ main.c:1:19: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int] 1 | x,y,n,k,i,j,p,q,r,s,a[1000]; | ^ main.c:1:21: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int] 1 | x,y,n,k,i,j,p,q,r,s,a[1000]; | ^ main.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 2 | c(int*a,int*b){return*a-*b;} | ^ main.c:3:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 3 | main(){ | ^~~~ main.c: In function ‘main’: main.c:4:15: warning: implicit declaration of fu
ソースコード
x,y,n,k,i,j,p,q,r,s,a[1000]; c(int*a,int*b){return*a-*b;} main(){ for(;~scanf("%d",a+i);i++); qsort(a,6,4,c); printf("%f",(a[1]+a[2]+a[3]+a[4])/4.); }