結果
| 問題 | No.502 階乗を計算するだけ |
| コンテスト | |
| ユーザー |
lpha_z
|
| 提出日時 | 2017-04-15 05:23:19 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 831 ms / 1,000 ms |
| コード長 | 129 bytes |
| コンパイル時間 | 906 ms |
| コンパイル使用メモリ | 28,416 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-18 15:50:56 |
| 合計ジャッジ時間 | 10,365 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 52 |
コンパイルメッセージ
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: warning: 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: warning: 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: warning: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:1:30: warning: 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: warning: 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-declar
ソースコード
*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);}
lpha_z