結果

問題 No.219 巨大数の概算
ユーザー 👑 testestest
提出日時 2017-06-17 18:45:13
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 6 ms / 1,500 ms
コード長 126 bytes
コンパイル時間 833 ms
コンパイル使用メモリ 28,288 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-18 12:21:22
合計ジャッジ時間 3,286 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 51
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:10: warning: data definition has no type or storage class
    1 | double f;b,x;main(long a){for(gets(&f);~scanf("%ld%d",&a,&b);printf("%d %d %ld\n",x/10,(x=pow(10,f-a+1))%10,a=f=log10(a)*b));}
      |          ^
main.c:1:10: warning: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:1:12: warning: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
    1 | double f;b,x;main(long a){for(gets(&f);~scanf("%ld%d",&a,&b);printf("%d %d %ld\n",x/10,(x=pow(10,f-a+1))%10,a=f=log10(a)*b));}
      |            ^
main.c:1:14: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | double f;b,x;main(long a){for(gets(&f);~scanf("%ld%d",&a,&b);printf("%d %d %ld\n",x/10,(x=pow(10,f-a+1))%10,a=f=log10(a)*b));}
      |              ^~~~
main.c: In function 'main':
main.c:1:31: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
    1 | double f;b,x;main(long a){for(gets(&f);~scanf("%ld%d",&a,&b);printf("%d %d %ld\n",x/10,(x=pow(10,f-a+1))%10,a=f=log10(a)*b));}
      |                               ^~~~
main.c:1:41: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | double f;b,x;main(long a){for(gets(&f);~scanf("%ld%d",&a,&b);printf("%d %d %ld\n",x/10,(x=pow(10,f-a+1))%10,a=f=log10(a)*b));}
      |                                         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | double f;b,x;main(long a){for(gets(&f);~scanf("%ld%d",&a,&b);printf("%d %d %ld\n",x/10,(x=pow(10,f-a+1))%10,a=f=log10(a)*b));}
main.c:1:41: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | double f;b,x;main(long a){for(gets(&f);~scanf("%ld%d",&a,&b);printf("%d %d %ld\n",x/10,(x=pow(10,f-a+1))%10,a=f=log10(a)*b));}
      |                                         ^~~~~
main.c:1:41: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:62: warnin

ソースコード

diff #

double f;b,x;main(long a){for(gets(&f);~scanf("%ld%d",&a,&b);printf("%d %d %ld\n",x/10,(x=pow(10,f-a+1))%10,a=f=log10(a)*b));}
0