結果
| 問題 | No.632 穴埋め門松列 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-04-30 17:20:21 | 
| 言語 | C (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1 ms / 1,000 ms | 
| コード長 | 113 bytes | 
| コンパイル時間 | 114 ms | 
| コンパイル使用メモリ | 27,520 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-27 23:55:47 | 
| 合計ジャッジ時間 | 520 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 6 | 
コンパイルメッセージ
main.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){char s[6];int a;gets(s);s[0]==63?a=s[2]==50?4:1:(a=s[2]==63?14:s[4]==63?a=s[2]==51?1:4:0);printf("%d",a);}
      | ^~~~
main.c: In function 'main':
main.c:1:24: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
    1 | main(){char s[6];int a;gets(s);s[0]==63?a=s[2]==50?4:1:(a=s[2]==63?14:s[4]==63?a=s[2]==51?1:4:0);printf("%d",a);}
      |                        ^~~~
main.c:1:98: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(){char s[6];int a;gets(s);s[0]==63?a=s[2]==50?4:1:(a=s[2]==63?14:s[4]==63?a=s[2]==51?1:4:0);printf("%d",a);}
      |                                                                                                  ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | main(){char s[6];int a;gets(s);s[0]==63?a=s[2]==50?4:1:(a=s[2]==63?14:s[4]==63?a=s[2]==51?1:4:0);printf("%d",a);}
main.c:1:98: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    1 | main(){char s[6];int a;gets(s);s[0]==63?a=s[2]==50?4:1:(a=s[2]==63?14:s[4]==63?a=s[2]==51?1:4:0);printf("%d",a);}
      |                                                                                                  ^~~~~~
main.c:1:98: note: include '<stdio.h>' or provide a declaration of 'printf'
/usr/bin/ld: /tmp/ccJ762mF.o: in function `main':
main.c:(.text.startup+0xc): 警告: the `gets' function is dangerous and should not be used.
            
            ソースコード
main(){char s[6];int a;gets(s);s[0]==63?a=s[2]==50?4:1:(a=s[2]==63?14:s[4]==63?a=s[2]==51?1:4:0);printf("%d",a);}
            
            
            
        