結果

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

ソースコード

diff #

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