結果
| 問題 |
No.275 中央値を求めよ
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2016-02-18 02:24:57 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 126 bytes |
| コンパイル時間 | 80 ms |
| コンパイル使用メモリ | 20,864 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-24 23:42:25 |
| 合計ジャッジ時間 | 1,100 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 38 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | a[999];c(int*a,int*b){return*a-*b;}main(i){for(;~scanf("%d",a-i--););qsort(a,~i,4,c);*a=!printf("%f",(a[~i/2]+a[~-~i/2])*.5);}
| ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
main.c:1:8: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | a[999];c(int*a,int*b){return*a-*b;}main(i){for(;~scanf("%d",a-i--););qsort(a,~i,4,c);*a=!printf("%f",(a[~i/2]+a[~-~i/2])*.5);}
| ^
main.c:1:36: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | a[999];c(int*a,int*b){return*a-*b;}main(i){for(;~scanf("%d",a-i--););qsort(a,~i,4,c);*a=!printf("%f",(a[~i/2]+a[~-~i/2])*.5);}
| ^~~~
main.c: In function ‘main’:
main.c:1:36: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:50: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
1 | a[999];c(int*a,int*b){return*a-*b;}main(i){for(;~scanf("%d",a-i--););qsort(a,~i,4,c);*a=!printf("%f",(a[~i/2]+a[~-~i/2])*.5);}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | a[999];c(int*a,int*b){return*a-*b;}main(i){for(;~scanf("%d",a-i--););qsort(a,~i,4,c);*a=!printf("%f",(a[~i/2]+a[~-~i/2])*.5);}
main.c:1:50: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | a[999];c(int*a,int*b){return*a-*b;}main(i){for(;~scanf("%d",a-i--););qsort(a,~i,4,c);*a=!printf("%f",(a[~i/2]+a[~-~i/2])*.5);}
| ^~~~~
main.c:1:50: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:1:70: warning: implicit declaration of function ‘qsort’ [-Wimplicit-function-declaration]
1 | a[999];c(int*a,int*b){return*a-*b;}main(i){for(;~scanf
ソースコード
a[999];c(int*a,int*b){return*a-*b;}main(i){for(;~scanf("%d",a-i--););qsort(a,~i,4,c);*a=!printf("%f",(a[~i/2]+a[~-~i/2])*.5);}
testestest