結果
| 問題 |
No.347 微分と積分
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2016-02-27 10:49:09 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 127 bytes |
| コンパイル時間 | 102 ms |
| コンパイル使用メモリ | 21,376 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-26 03:09:38 |
| 合計ジャッジ時間 | 826 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
コンパイルメッセージ
main.c:1:14: warning: data definition has no type or storage class
1 | double a,t,s;b;main(i){for(;~scanf("%lf",&a);b=i--<0?s+=a*pow(b,a-1),t+=(a+=1)?pow(b,a)/a:log(b),b:a);b=!printf("%f\n%f",s,t);}
| ^
main.c:1:14: warning: type defaults to ‘int’ in declaration of ‘b’ [-Wimplicit-int]
main.c:1:16: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | double a,t,s;b;main(i){for(;~scanf("%lf",&a);b=i--<0?s+=a*pow(b,a-1),t+=(a+=1)?pow(b,a)/a:log(b),b:a);b=!printf("%f\n%f",s,t);}
| ^~~~
main.c: In function ‘main’:
main.c:1:16: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:30: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
1 | double a,t,s;b;main(i){for(;~scanf("%lf",&a);b=i--<0?s+=a*pow(b,a-1),t+=(a+=1)?pow(b,a)/a:log(b),b:a);b=!printf("%f\n%f",s,t);}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | double a,t,s;b;main(i){for(;~scanf("%lf",&a);b=i--<0?s+=a*pow(b,a-1),t+=(a+=1)?pow(b,a)/a:log(b),b:a);b=!printf("%f\n%f",s,t);}
main.c:1:30: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | double a,t,s;b;main(i){for(;~scanf("%lf",&a);b=i--<0?s+=a*pow(b,a-1),t+=(a+=1)?pow(b,a)/a:log(b),b:a);b=!printf("%f\n%f",s,t);}
| ^~~~~
main.c:1:30: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:1:59: warning: implicit declaration of function ‘pow’ [-Wimplicit-function-declaration]
1 | double a,t,s;b;main(i){for(;~scanf("%lf",&a);b=i--<0?s+=a*pow(b,a-1),t+=(a+=1)?pow(b,a)/a:log(b),b:a);b=!printf("%f\n%f",s,t);}
| ^~~
main.c:1:1: note: include ‘<math.h>’ or provide a declaration of ‘pow’
+++ |+#include <math.h>
1 | double a,
ソースコード
double a,t,s;b;main(i){for(;~scanf("%lf",&a);b=i--<0?s+=a*pow(b,a-1),t+=(a+=1)?pow(b,a)/a:log(b),b:a);b=!printf("%f\n%f",s,t);}
testestest