結果

問題 No.494 yukicoder
ユーザー testestesttestestest
提出日時 2017-06-14 03:09:55
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 49 bytes
コンパイル時間 129 ms
コンパイル使用メモリ 27,476 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-24 21:58:21
合計ジャッジ時間 636 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 AC 1 ms
4,348 KB
testcase_04 AC 1 ms
4,348 KB
testcase_05 AC 1 ms
4,348 KB
testcase_06 AC 1 ms
4,348 KB
testcase_07 AC 1 ms
4,348 KB
testcase_08 AC 1 ms
4,348 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | s;main(x){for(;x=~getchar(s+=x););putchar(33+s);}
      | ^
main.c:1:1: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
main.c:1:3: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | s;main(x){for(;x=~getchar(s+=x););putchar(33+s);}
      |   ^~~~
main.c: In function 'main':
main.c:1:3: warning: type of 'x' defaults to 'int' [-Wimplicit-int]
main.c:1:19: warning: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
    1 | s;main(x){for(;x=~getchar(s+=x););putchar(33+s);}
      |                   ^~~~~~~
main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
  +++ |+#include <stdio.h>
    1 | s;main(x){for(;x=~getchar(s+=x););putchar(33+s);}
main.c:1:35: warning: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
    1 | s;main(x){for(;x=~getchar(s+=x););putchar(33+s);}
      |                                   ^~~~~~~
main.c:1:35: note: include '<stdio.h>' or provide a declaration of 'putchar'

ソースコード

diff #

s;main(x){for(;x=~getchar(s+=x););putchar(33+s);}
0