結果
| 問題 | No.472 平均順位 |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2016-12-22 02:05:02 |
| 言語 | C90(gcc15) (gcc 15.2.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 201 bytes |
| 記録 | |
| コンパイル時間 | 182 ms |
| コンパイル使用メモリ | 37,204 KB |
| 最終ジャッジ日時 | 2026-02-23 23:55:41 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 4 |
| other | RE * 16 |
コンパイルメッセージ
main.c:2:3: warning: multi-character character constant [-Wmultichar]
2 | d['@@'];n,p;main(a,b,c,j,k){scanf("%d%d",&n,&p);for(memset(j=d+p+1,99,12);j++<p||~scanf("%d%d%d",&a,&b,&c,j=0);F(b),F(c),F(1))d[k=j]+=a;n=!printf("%f",1.**d/n);}
| ^~~~
main.c:2:1: warning: data definition has no type or storage class
2 | d['@@'];n,p;main(a,b,c,j,k){scanf("%d%d",&n,&p);for(memset(j=d+p+1,99,12);j++<p||~scanf("%d%d%d",&a,&b,&c,j=0);F(b),F(c),F(1))d[k=j]+=a;n=!printf("%f",1.**d/n);}
| ^
main.c:2:9: warning: data definition has no type or storage class
2 | d['@@'];n,p;main(a,b,c,j,k){scanf("%d%d",&n,&p);for(memset(j=d+p+1,99,12);j++<p||~scanf("%d%d%d",&a,&b,&c,j=0);F(b),F(c),F(1))d[k=j]+=a;n=!printf("%f",1.**d/n);}
| ^
main.c: In function 'main':
main.c:2:29: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
2 | d['@@'];n,p;main(a,b,c,j,k){scanf("%d%d",&n,&p);for(memset(j=d+p+1,99,12);j++<p||~scanf("%d%d%d",&a,&b,&c,j=0);F(b),F(c),F(1))d[k=j]+=a;n=!printf("%f",1.**d/n);}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | #define F(v)d[j]>d[++k]+v?d[j]=d[k]+v:0
main.c:2:53: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch]
2 | d['@@'];n,p;main(a,b,c,j,k){scanf("%d%d",&n,&p);for(memset(j=d+p+1,99,12);j++<p||~scanf("%d%d%d",&a,&b,&c,j=0);F(b),F(c),F(1))d[k=j]+=a;n=!printf("%f",1.**d/n);}
| ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'memset'
+++ |+#include <string.h>
1 | #define F(v)d[j]>d[++k]+v?d[j]=d[k]+v:0
main.c:2:61: warning: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
2 | d['@@'];n,p;main(a,b,c,j,k){scanf("%d%d",&n,&p);for(memset(j=d+p+1,99,12);j++<p||~scanf("%d%d%d",&a,&b,&c,
ソースコード
#define F(v)d[j]>d[++k]+v?d[j]=d[k]+v:0
d['@@'];n,p;main(a,b,c,j,k){scanf("%d%d",&n,&p);for(memset(j=d+p+1,99,12);j++<p||~scanf("%d%d%d",&a,&b,&c,j=0);F(b),F(c),F(1))d[k=j]+=a;n=!printf("%f",1.**d/n);}
tails