結果
| 問題 | No.502 階乗を計算するだけ |
| コンテスト | |
| ユーザー |
%20
|
| 提出日時 | 2017-04-09 04:22:43 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 953 ms / 1,000 ms |
| コード長 | 128 bytes |
| 記録 | |
| コンパイル時間 | 265 ms |
| コンパイル使用メモリ | 28,672 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-18 00:29:32 |
| 合計ジャッジ時間 | 10,077 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 52 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | *a=" =��$�0��|�'P7�*";long n,x;main(){scanf("%ld",&n);for(n<';��'?x=a[n/'��']:0;n%'��';)x=x*n--%';��';printf("%d",x);}
| ^
main.c:1:2: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
1 | *a=" =��$�0��|�'P7�*";long n,x;main(){scanf("%ld",&n);for(n<';��'?x=a[n/'��']:0;n%'��';)x=x*n--%';��';printf("%d",x);}
| ^
main.c:1:4: warning: null character(s) preserved in literal
1 | *a=" =��$�0��|�'P7�*";long n,x;main(){scanf("%ld",&n);for(n<';��'?x=a[n/'��']:0;n%'��';)x=x*n--%';��';printf("%d",x);}
| ^
main.c:1:4: warning: initialization of 'int *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types]
1 | *a=" =��$�0��|�'P7�*";long n,x;main(){scanf("%ld",&n);for(n<';��'?x=a[n/'��']:0;n%'��';)x=x*n--%';��';printf("%d",x);}
| ^~~~~~~~~~~~~~~~~~~~~~
main.c:1:36: warning: return type defaults to 'int' [-Wimplicit-int]
1 | *a=" =��$�0��|�'P7�*";long n,x;main(){scanf("%ld",&n);for(n<';��'?x=a[n/'��']:0;n%'��';)x=x*n--%';��';printf("%d",x);}
| ^~~~
main.c: In function 'main':
main.c:1:43: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
1 | *a=" =��$�0��|�'P7�*";long n,x;main(){scanf("%ld",&n);for(n<';��'?x=a[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=" =��$�0��|�'P7�*";long n,x;main(){scanf("%ld",&n);for(n<';��'?x=a[n/'��']:0;n%'��';)x=x*n--%';��';printf("%d",x);}
main.c:1:43: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | *a=" =��$�0��|�'P7�*";long n,x;main(){scanf("%ld",&n);for(n<';��'?x=a[n/'��']:0;n%'��';)x=x*n--%';��';printf("%
ソースコード
*a="���=$0|'P7*";long n,x;main(){scanf("%ld",&n);for(n<';'?x=a[n/'']:0;n%'';)x=x*n--%';';printf("%d",x);}
%20