結果
| 問題 | No.536 人工知能 | 
| コンテスト | |
| ユーザー | 👑  testestest | 
| 提出日時 | 2017-07-15 02:46:42 | 
| 言語 | C (gcc 13.3.0) | 
| 結果 | 
                                RE
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 93 bytes | 
| コンパイル時間 | 181 ms | 
| コンパイル使用メモリ | 27,264 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-10-08 00:31:25 | 
| 合計ジャッジ時間 | 3,072 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | RE * 11 | 
コンパイルメッセージ
main.c:1:10: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | char s[];main(f,g){f=strlen(gets(s));g=strcmp(s+f-2,"ai");write(1,s,g?f:f-2);puts("-AI"+!g);}
      |          ^~~~
main.c: In function 'main':
main.c:1:10: warning: type of 'f' defaults to 'int' [-Wimplicit-int]
main.c:1:10: warning: type of 'g' defaults to 'int' [-Wimplicit-int]
main.c:1:22: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    1 | char s[];main(f,g){f=strlen(gets(s));g=strcmp(s+f-2,"ai");write(1,s,g?f:f-2);puts("-AI"+!g);}
      |                      ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'strlen'
  +++ |+#include <string.h>
    1 | char s[];main(f,g){f=strlen(gets(s));g=strcmp(s+f-2,"ai");write(1,s,g?f:f-2);puts("-AI"+!g);}
main.c:1:22: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    1 | char s[];main(f,g){f=strlen(gets(s));g=strcmp(s+f-2,"ai");write(1,s,g?f:f-2);puts("-AI"+!g);}
      |                      ^~~~~~
main.c:1:22: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:1:29: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
    1 | char s[];main(f,g){f=strlen(gets(s));g=strcmp(s+f-2,"ai");write(1,s,g?f:f-2);puts("-AI"+!g);}
      |                             ^~~~
main.c:1:29: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
    1 | char s[];main(f,g){f=strlen(gets(s));g=strcmp(s+f-2,"ai");write(1,s,g?f:f-2);puts("-AI"+!g);}
      |                             ^~~~~~~
      |                             |
      |                             int
main.c:1:29: note: expected 'const char *' but argument is of type 'int'
main.c:1:40: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    1 | char s[];main(f,g){f=strlen(gets(s));g=strcmp(s+f-2,"ai");write(1,s,g?f:f-2);puts("-AI"+!g);}
      |        
            
            ソースコード
char s[];main(f,g){f=strlen(gets(s));g=strcmp(s+f-2,"ai");write(1,s,g?f:f-2);puts("-AI"+!g);}
            
            
            
        