結果
問題 | No.502 階乗を計算するだけ |
ユーザー |
![]() |
提出日時 | 2017-04-09 18:19:50 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 941 ms / 1,000 ms |
コード長 | 130 bytes |
コンパイル時間 | 711 ms |
コンパイル使用メモリ | 28,672 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-18 01:34:57 |
合計ジャッジ時間 | 10,899 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 52 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | *a=" M�#O�9`�7��p%?y�";x;main(long n){scanf("%ld",&n);for(n<1e9+7?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=" M�#O�9`�7��p%?y�";x;main(long n){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�";x;main(long n){scanf("%ld",&n);for(n<1e9+7?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=" M�#O�9`�7��p%?y�";x;main(long n){scanf("%ld",&n);for(n<1e9+7?x=a[n/' �!�']:0;n%' �!�';)x=x*n--%';��';printf("%d",x);} | ^~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:1:31: warning: data definition has no type or storage class 1 | *a=" M�#O�9`�7��p%?y�";x;main(long n){scanf("%ld",&n);for(n<1e9+7?x=a[n/' �!�']:0;n%' �!�';)x=x*n--%';��';printf("%d",x);} | ^ main.c:1:31: warning: type defaults to 'int' in declaration of 'x' [-Wimplicit-int] main.c:1:33: warning: return type defaults to 'int' [-Wimplicit-int] 1 | *a=" M�#O�9`�7��p%?y�";x;main(long n){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:46: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | *a=" M�#O�9`�7��p%?y�";x;main(long n){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
ソースコード
*a="���M#O9`7p%?y";x;main(long n){scanf("%ld",&n);for(n<1e9+7?x=a[n/' !']:0;n%' !';)x=x*n--%';';printf("%d",x);}