結果

問題 No.256 桁の数字を入れ替え (2)
ユーザー testestesttestestest
提出日時 2015-08-09 14:57:47
言語 C90
(gcc 11.4.0)
結果
RE  
実行時間 -
コード長 87 bytes
コンパイル時間 110 ms
コンパイル使用メモリ 22,772 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-25 07:29:09
合計ジャッジ時間 1,416 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
 a[10];main(t){for(;read(0,&t,1);a[t-48]++);for(t=11;--t;)for(;a[t-1]--;)putchar(47+t);}
 ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
main.c:1:7: warning: return type defaults to ‘int’ [-Wimplicit-int]
 a[10];main(t){for(;read(0,&t,1);a[t-48]++);for(t=11;--t;)for(;a[t-1]--;)putchar(47+t);}
       ^~~~
main.c: In function ‘main’:
main.c:1:7: warning: type of ‘t’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:20: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration]
 a[10];main(t){for(;read(0,&t,1);a[t-48]++);for(t=11;--t;)for(;a[t-1]--;)putchar(47+t);}
                    ^~~~
main.c:1:73: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration]
 a[10];main(t){for(;read(0,&t,1);a[t-48]++);for(t=11;--t;)for(;a[t-1]--;)putchar(47+t);}
                                                                         ^~~~~~~

ソースコード

diff #

a[10];main(t){for(;read(0,&t,1);a[t-48]++);for(t=11;--t;)for(;a[t-1]--;)putchar(47+t);}
0