結果
| 問題 | No.256 桁の数字を入れ替え (2) |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2015-08-09 14:58:57 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 85 bytes |
| 記録 | |
| コンパイル時間 | 74 ms |
| コンパイル使用メモリ | 20,096 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-18 06:11:43 |
| 合計ジャッジ時間 | 422 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | a[];main(t){for(;t=getchar()-10;a[t-37]++);for(t=11;--t;)for(;a[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]
1 | a[];main(t){for(;t=getchar()-10;a[t-37]++);for(t=11;--t;)for(;a[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]
1 | a[];main(t){for(;t=getchar()-10;a[t-37]++);for(t=11;--t;)for(;a[t]--;)putchar(47+t);}
| ^~~~~~~
main.c:1:1: note: ‘getchar’ is defined in header ‘<stdio.h>’; did you forget to ‘#include <stdio.h>’?
+++ |+#include <stdio.h>
1 | a[];main(t){for(;t=getchar()-10;a[t-37]++);for(t=11;--t;)for(;a[t]--;)putchar(47+t);}
main.c:1:71: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration]
1 | a[];main(t){for(;t=getchar()-10;a[t-37]++);for(t=11;--t;)for(;a[t]--;)putchar(47+t);}
| ^~~~~~~
main.c:1:71: note: include ‘<stdio.h>’ or provide a declaration of ‘putchar’
main.c: At top level:
main.c:1:1: warning: array ‘a’ assumed to have one element
1 | a[];main(t){for(;t=getchar()-10;a[t-37]++);for(t=11;--t;)for(;a[t]--;)putchar(47+t);}
| ^
ソースコード
a[];main(t){for(;t=getchar()-10;a[t-37]++);for(t=11;--t;)for(;a[t]--;)putchar(47+t);}
testestest