結果

問題 No.502 階乗を計算するだけ
コンテスト
ユーザー lpha_z
提出日時 2017-04-15 05:23:19
言語 C
(gcc 15.2.0)
結果
CE  
(最新)
AC  
(最初)
実行時間 -
コード長 129 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 78 ms
コンパイル使用メモリ 26,072 KB
最終ジャッジ日時 2026-02-21 23:40:39
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | *a="?y���p%`�7O�9M�#";x;main(long n){scanf("%ld",&n);for(n<1e9+7?x=a[5-n/' �!�']:0;n%'     �!�';)x=x*n--%';��';printf("%d",x);}
      | ^
main.c:1:2: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
    1 | *a="?y���p%`�7O�9M�#";x;main(long n){scanf("%ld",&n);for(n<1e9+7?x=a[5-n/' �!�']:0;n%'     �!�';)x=x*n--%';��';printf("%d",x);}
      |  ^
main.c:1:4: error: initialization of 'int *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types]
    1 | *a="?y���p%`�7O�9M�#";x;main(long n){scanf("%ld",&n);for(n<1e9+7?x=a[5-n/' �!�']:0;n%'     �!�';)x=x*n--%';��';printf("%d",x);}
      |    ^~~~~~~~~~~~~~~~~~~~~~~
main.c:1:28: warning: data definition has no type or storage class
    1 | *a="?y���p%`�7O�9M�#";x;main(long n){scanf("%ld",&n);for(n<1e9+7?x=a[5-n/' �!�']:0;n%'     �!�';)x=x*n--%';��';printf("%d",x);}
      |                            ^
main.c:1:28: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:1:30: error: return type defaults to 'int' [-Wimplicit-int]
    1 | *a="?y���p%`�7O�9M�#";x;main(long n){scanf("%ld",&n);for(n<1e9+7?x=a[5-n/' �!�']:0;n%'     �!�';)x=x*n--%';��';printf("%d",x);}
      |                              ^~~~
main.c: In function 'main':
main.c:1:43: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | *a="?y���p%`�7O�9M�#";x;main(long n){scanf("%ld",&n);for(n<1e9+7?x=a[5-n/' �!�']:0;n%'     �!�';)x=x*n--%';��';printf("%d",x);}
      |                                           ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | *a="?y���p%`�7O�9M�#";x;main(long n){scanf("%ld",&n);for(n<1e9+7?x=a[5-n/' �!�']:0;n%'     �!�';)x=x*n--%';��';printf("%d",x);}
main.c:1:43: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mism

ソースコード

diff #
raw source code

*a="?yp%`7O9M#";x;main(long n){scanf("%ld",&n);for(n<1e9+7?x=a[5-n/'	!']:0;n%'	!';)x=x*n--%';';printf("%d",x);}
0