結果

問題 No.400 鏡
ユーザー testestesttestestest
提出日時 2016-07-23 06:18:24
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 62 bytes
コンパイル時間 673 ms
コンパイル使用メモリ 22,352 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-06 11:19:18
合計ジャッジ時間 1,439 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 0 ms
4,376 KB
testcase_03 AC 0 ms
4,376 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 0 ms
4,380 KB
testcase_06 AC 0 ms
4,376 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 1 ms
4,380 KB
testcase_09 AC 1 ms
4,380 KB
testcase_10 AC 1 ms
4,380 KB
testcase_11 AC 0 ms
4,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:10: warning: data definition has no type or storage class
 char s[];i;main(){for(i=strlen(gets(s));i--;putchar(s[i]^2));}
          ^
main.c:1:10: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int]
main.c:1:12: warning: return type defaults to ‘int’ [-Wimplicit-int]
 char s[];i;main(){for(i=strlen(gets(s));i--;putchar(s[i]^2));}
            ^~~~
main.c: In function ‘main’:
main.c:1:25: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
 char s[];i;main(){for(i=strlen(gets(s));i--;putchar(s[i]^2));}
                         ^~~~~~
main.c:1:25: warning: incompatible implicit declaration of built-in function ‘strlen’
main.c:1:25: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
+#include <string.h>
 char s[];i;main(){for(i=strlen(gets(s));i--;putchar(s[i]^2));}
                         ^~~~~~
main.c:1:32: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 char s[];i;main(){for(i=strlen(gets(s));i--;putchar(s[i]^2));}
                                ^~~~
main.c:1:32: warning: passing argument 1 of ‘strlen’ makes pointer from integer without a cast [-Wint-conversion]
 char s[];i;main(){for(i=strlen(gets(s));i--;putchar(s[i]^2));}
                                ^~~~~~~
main.c:1:32: note: expected ‘const char *’ but argument is of type ‘int’
main.c:1:45: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration]
 char s[];i;main(){for(i=strlen(gets(s));i--;putchar(s[i]^2));}
                                             ^~~~~~~
main.c: At top level:
main.c:1:6: warning: array ‘s’ assumed to have one element
 char s[];i;main(){for(i=strlen(gets(s));i--;putchar(s[i]^2));}
      ^
/tmp/ccdq1Af6.o: In function `main':
main.c:(.text.startup+0xc): warning: the `gets' function is dangerous and should not be used.

ソースコード

diff #

char s[];i;main(){for(i=strlen(gets(s));i--;putchar(s[i]^2));}
0