結果
| 問題 | No.502 階乗を計算するだけ |
| コンテスト | |
| ユーザー |
%20
|
| 提出日時 | 2017-04-09 17:12:05 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 131 bytes |
| 記録 | |
| コンパイル時間 | 113 ms |
| コンパイル使用メモリ | 26,036 KB |
| 最終ジャッジ日時 | 2026-02-21 23:40:02 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | *a=" M�#O�9`�7��p%?y�";long n,x;main(){scanf("%ld",&n);for(n<1e9+7?x=a[n/' �!�']:0;n%' �!�';)x=x*n--%';��';printf("%d",x);}
| ^
main.c:1:4: warning: null character(s) preserved in literal
1 | *a=" M�#O�9`�7��p%?y�";long n,x;main(){scanf("%ld",&n);for(n<1e9+7?x=a[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=" M�#O�9`�7��p%?y�";long n,x;main(){scanf("%ld",&n);for(n<1e9+7?x=a[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=" M�#O�9`�7��p%?y�";long n,x;main(){scanf("%ld",&n);for(n<1e9+7?x=a[n/' �!�']:0;n%' �!�';)x=x*n--%';��';printf("%d",x);}
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:1:40: error: return type defaults to 'int' [-Wimplicit-int]
1 | *a=" M�#O�9`�7��p%?y�";long n,x;main(){scanf("%ld",&n);for(n<1e9+7?x=a[n/' �!�']:0;n%' �!�';)x=x*n--%';��';printf("%d",x);}
| ^~~~
main.c: In function 'main':
main.c:1:47: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
1 | *a=" M�#O�9`�7��p%?y�";long n,x;main(){scanf("%ld",&n);for(n<1e9+7?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=" M�#O�9`�7��p%?y�";long n,x;main(){scanf("%ld",&n);for(n<1e9+7?x=a[n/' �!�']:0;n%' �!�';)x=x*n--%';��';printf("%d",x);}
main.c:1:47: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | *a=" M�#O�9`�7��p%?y
ソースコード
*a="���M#O9`7p%?y";long n,x;main(){scanf("%ld",&n);for(n<1e9+7?x=a[n/' !']:0;n%' !';)x=x*n--%';';printf("%d",x);}
%20