結果

問題 No.256 桁の数字を入れ替え (2)
ユーザー testestesttestestest
提出日時 2015-08-09 21:10:21
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 80 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 22,872 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-25 07:37:04
合計ジャッジ時間 630 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
 a[];main(t){for(;t=getchar()-10;a[t-37]++);for(t=11;a[t]--||--t;)putchar(47+t);}
 ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
main.c:1:5: warning: return type defaults to ‘int’ [-Wimplicit-int]
 a[];main(t){for(;t=getchar()-10;a[t-37]++);for(t=11;a[t]--||--t;)putchar(47+t);}
     ^~~~
main.c: In function ‘main’:
main.c:1:5: warning: type of ‘t’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:20: warning: implicit declaration of function ‘getchar’ [-Wimplicit-function-declaration]
 a[];main(t){for(;t=getchar()-10;a[t-37]++);for(t=11;a[t]--||--t;)putchar(47+t);}
                    ^~~~~~~
main.c:1:20: note: ‘getchar’ is defined in header ‘<stdio.h>’; did you forget to ‘#include <stdio.h>’?
+#include <stdio.h>
 a[];main(t){for(;t=getchar()-10;a[t-37]++);for(t=11;a[t]--||--t;)putchar(47+t);}
                    ^~~~~~~
main.c:1:66: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration]
 a[];main(t){for(;t=getchar()-10;a[t-37]++);for(t=11;a[t]--||--t;)putchar(47+t);}
                                                                  ^~~~~~~
main.c: At top level:
main.c:1:1: warning: array ‘a’ assumed to have one element
 a[];main(t){for(;t=getchar()-10;a[t-37]++);for(t=11;a[t]--||--t;)putchar(47+t);}
 ^

ソースコード

diff #

a[];main(t){for(;t=getchar()-10;a[t-37]++);for(t=11;a[t]--||--t;)putchar(47+t);}
0