結果
| 問題 | No.219 巨大数の概算 |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2016-03-15 23:43:03 |
| 言語 | C90 (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 8 ms / 1,500 ms |
| コード長 | 128 bytes |
| 記録 | |
| コンパイル時間 | 156 ms |
| コンパイル使用メモリ | 29,512 KB |
| 最終ジャッジ日時 | 2026-02-23 20:55:38 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);x=~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:43: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | double f;b,x;main(long a){for(gets(&f);x=~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);x=~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:64: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
1 | double f;b,x;main(long a){for(gets(&f);x=~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:64: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
main.c:1:93: warning: incompatible implicit declaration of built-in function ‘pow’ [-Wbuiltin-declaration-mismatch]
1 | double f;b,x;main(long a){for(gets(&f);x=~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 ‘<math.h>’ or provide a declaration of ‘pow’
+++ |+#include <math.h>
1 | double f;b,x;main(long a){for(gets(&f);x=~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:115: warning: incompatible implicit declaration of built-in function ‘log10’ [-Wbuiltin-declaration-mismatch]
1 | double f;b,x;main(long a){fo
ソースコード
double f;b,x;main(long a){for(gets(&f);x=~scanf("%ld%d",&a,&b);printf("%d %d %ld\n",x/10,(x=pow(10,f-a+1))%10,a=f=log10(a)*b));}
testestest