結果
問題 |
No.394 ハーフパイプ(1)
|
ユーザー |
👑 ![]() |
提出日時 | 2016-07-15 22:21:32 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 156 bytes |
コンパイル時間 | 114 ms |
コンパイル使用メモリ | 20,352 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-15 01:26:00 |
合計ジャッジ時間 | 591 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 11 |
コンパイルメッセージ
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); n=!printf("%f",(a[1]+a[2]+a[3]+a[4])/4.); }