結果
問題 | No.423 ハムスター語初級(数詞) |
ユーザー | testestest |
提出日時 | 2016-09-28 10:23:56 |
言語 | C90 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 56 bytes |
コンパイル時間 | 560 ms |
コンパイル使用メモリ | 22,532 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-08-13 12:51:45 |
合計ジャッジ時間 | 1,269 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 0 ms
4,376 KB |
testcase_01 | AC | 1 ms
4,376 KB |
testcase_02 | AC | 1 ms
4,376 KB |
testcase_03 | AC | 0 ms
4,376 KB |
testcase_04 | AC | 1 ms
4,380 KB |
testcase_05 | AC | 0 ms
4,376 KB |
testcase_06 | AC | 1 ms
4,376 KB |
testcase_07 | AC | 0 ms
4,380 KB |
testcase_08 | AC | 0 ms
4,380 KB |
testcase_09 | AC | 1 ms
4,380 KB |
コンパイルメッセージ
main.c:1:10: warning: data definition has no type or storage class char s[];x;main(){x=!printf(s[3]?"%sham":"%s",gets(s));} ^ main.c:1:10: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int] main.c:1:12: warning: return type defaults to ‘int’ [-Wimplicit-int] char s[];x;main(){x=!printf(s[3]?"%sham":"%s",gets(s));} ^~~~ main.c: In function ‘main’: main.c:1:22: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] char s[];x;main(){x=!printf(s[3]?"%sham":"%s",gets(s));} ^~~~~~ main.c:1:22: warning: incompatible implicit declaration of built-in function ‘printf’ main.c:1:22: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ +#include <stdio.h> char s[];x;main(){x=!printf(s[3]?"%sham":"%s",gets(s));} ^~~~~~ main.c:1:47: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] char s[];x;main(){x=!printf(s[3]?"%sham":"%s",gets(s));} ^~~~ main.c: At top level: main.c:1:6: warning: array ‘s’ assumed to have one element char s[];x;main(){x=!printf(s[3]?"%sham":"%s",gets(s));} ^ /tmp/ccZlb8Pq.o: In function `main': main.c:(.text.startup+0xc): warning: the `gets' function is dangerous and should not be used.
ソースコード
char s[];x;main(){x=!printf(s[3]?"%sham":"%s",gets(s));}