結果

問題 No.219 巨大数の概算
ユーザー 👑 testestest
提出日時 2016-02-18 00:31:01
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 6 ms / 1,500 ms
コード長 133 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 20,480 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-18 12:07:35
合計ジャッジ時間 2,477 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 51
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:19: warning: data definition has no type or storage class
    1 | long a,b;double f;x;main(){for(gets(&f);x=~scanf("%ld%d",&a,&b);printf("%d %d %ld\n",x=f,(x=(f=pow(10,f-a))*10)%10,a=f=log10(a)*b));}
      |                   ^
main.c:1:19: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int]
main.c:1:21: warning: return type defaults to ‘int’ [-Wimplicit-int]
    1 | long a,b;double f;x;main(){for(gets(&f);x=~scanf("%ld%d",&a,&b);printf("%d %d %ld\n",x=f,(x=(f=pow(10,f-a))*10)%10,a=f=log10(a)*b));}
      |                     ^~~~
main.c: In function ‘main’:
main.c:1:32: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
    1 | long a,b;double f;x;main(){for(gets(&f);x=~scanf("%ld%d",&a,&b);printf("%d %d %ld\n",x=f,(x=(f=pow(10,f-a))*10)%10,a=f=log10(a)*b));}
      |                                ^~~~
main.c:1:44: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
    1 | long a,b;double f;x;main(){for(gets(&f);x=~scanf("%ld%d",&a,&b);printf("%d %d %ld\n",x=f,(x=(f=pow(10,f-a))*10)%10,a=f=log10(a)*b));}
      |                                            ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
  +++ |+#include <stdio.h>
    1 | long a,b;double f;x;main(){for(gets(&f);x=~scanf("%ld%d",&a,&b);printf("%d %d %ld\n",x=f,(x=(f=pow(10,f-a))*10)%10,a=f=log10(a)*b));}
main.c:1:44: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
    1 | long a,b;double f;x;main(){for(gets(&f);x=~scanf("%ld%d",&a,&b);printf("%d %d %ld\n",x=f,(x=(f=pow(10,f-a))*10)%10,a=f=log10(a)*b));}
      |                                            ^~~~~
main.c:1:44: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:1:55: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=]
    1 | long a,b;doub

ソースコード

diff #

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