結果
| 問題 | No.536 人工知能 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-04-21 23:32:07 | 
| 言語 | C (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1 ms / 1,000 ms | 
| コード長 | 126 bytes | 
| コンパイル時間 | 252 ms | 
| コンパイル使用メモリ | 27,520 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-27 05:29:54 | 
| 合計ジャッジ時間 | 1,123 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 11 | 
コンパイルメッセージ
main.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){char s[11];gets(s);int a=strlen(s);if(s[a-1]=='i'&&s[a-2]=='a'){s[a-1]='I';s[a-2]='A';puts(s);}else printf("%s-AI",s);}
      | ^~~~
main.c: In function 'main':
main.c:1:19: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
    1 | main(){char s[11];gets(s);int a=strlen(s);if(s[a-1]=='i'&&s[a-2]=='a'){s[a-1]='I';s[a-2]='A';puts(s);}else printf("%s-AI",s);}
      |                   ^~~~
main.c:1:33: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    1 | main(){char s[11];gets(s);int a=strlen(s);if(s[a-1]=='i'&&s[a-2]=='a'){s[a-1]='I';s[a-2]='A';puts(s);}else printf("%s-AI",s);}
      |                                 ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'strlen'
  +++ |+#include <string.h>
    1 | main(){char s[11];gets(s);int a=strlen(s);if(s[a-1]=='i'&&s[a-2]=='a'){s[a-1]='I';s[a-2]='A';puts(s);}else printf("%s-AI",s);}
main.c:1:33: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    1 | main(){char s[11];gets(s);int a=strlen(s);if(s[a-1]=='i'&&s[a-2]=='a'){s[a-1]='I';s[a-2]='A';puts(s);}else printf("%s-AI",s);}
      |                                 ^~~~~~
main.c:1:33: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:1:94: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | main(){char s[11];gets(s);int a=strlen(s);if(s[a-1]=='i'&&s[a-2]=='a'){s[a-1]='I';s[a-2]='A';puts(s);}else printf("%s-AI",s);}
      |                                                                                              ^~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'puts'
  +++ |+#include <stdio.h>
    1 | main(){char s[11];gets(s);int a=strlen(s);if(s[a-1]=='i'&&s[a-2]=='a'){s[a-1]='I';s[a-2]='A';puts(s);}else printf("%s-AI",s);}
main.c:1:108: warning: im
            
            ソースコード
main(){char s[11];gets(s);int a=strlen(s);if(s[a-1]=='i'&&s[a-2]=='a'){s[a-1]='I';s[a-2]='A';puts(s);}else printf("%s-AI",s);}
            
            
            
        