結果
| 問題 |
No.347 微分と積分
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2016-03-12 14:08:47 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 125 bytes |
| コンパイル時間 | 258 ms |
| コンパイル使用メモリ | 22,016 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-26 03:09:40 |
| 合計ジャッジ時間 | 1,161 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
コンパイルメッセージ
main.c:1:13: warning: data definition has no type or storage class
1 | float a,t,s;b;main(i){for(;~scanf("%f",&a);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:13: warning: type defaults to ‘int’ in declaration of ‘b’ [-Wimplicit-int]
main.c:1:15: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | float a,t,s;b;main(i){for(;~scanf("%f",&a);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:15: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:29: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
1 | float a,t,s;b;main(i){for(;~scanf("%f",&a);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 | float a,t,s;b;main(i){for(;~scanf("%f",&a);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:29: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | float a,t,s;b;main(i){for(;~scanf("%f",&a);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:29: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:1:55: warning: implicit declaration of function ‘pow’ [-Wimplicit-function-declaration]
1 | float a,t,s;b;main(i){for(;~scanf("%f",&a);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 | float a,t,s;b;main(i){for(;~s
ソースコード
float a,t,s;b;main(i){for(;~scanf("%f",&a);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