結果
| 問題 | No.219 巨大数の概算 |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2017-06-17 18:45:13 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 126 bytes |
| 記録 | |
| コンパイル時間 | 153 ms |
| コンパイル使用メモリ | 25,524 KB |
| 最終ジャッジ日時 | 2026-02-21 23:56:13 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
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: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:1:12: error: 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: error: 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: error: 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: error: 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: error: implicit
ソースコード
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));}
testestest