結果
| 問題 |
No.43 野球の試合
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2017-06-17 16:33:01 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 259 bytes |
| コンパイル時間 | 368 ms |
| コンパイル使用メモリ | 29,568 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-01 11:26:07 |
| 合計ジャッジ時間 | 1,001 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | AC * 1 WA * 6 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | a[14],n;x(int*a){int b[6]={},f=1,i=48,j=0;char c[48];for(bcopy(a,c,48);--i&&c[i]-45;b[i/8]+=c[i]&4);for(;i<6;j|=1<<b[i++])f+=~j>>b[i]&b[i]>*b;n=i>6?c[i]=4,c[j=i%8*8+i/8]=0,f=x(c),c[i]=0,c[j]=4,j=x(c),f<j?f:j:f;}main(i){for(;gets(a-i--*2););printf("%d",x(a));}
| ^
main.c:1:1: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:7: warning: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
1 | a[14],n;x(int*a){int b[6]={},f=1,i=48,j=0;char c[48];for(bcopy(a,c,48);--i&&c[i]-45;b[i/8]+=c[i]&4);for(;i<6;j|=1<<b[i++])f+=~j>>b[i]&b[i]>*b;n=i>6?c[i]=4,c[j=i%8*8+i/8]=0,f=x(c),c[i]=0,c[j]=4,j=x(c),f<j?f:j:f;}main(i){for(;gets(a-i--*2););printf("%d",x(a));}
| ^
main.c:1:9: warning: return type defaults to 'int' [-Wimplicit-int]
1 | a[14],n;x(int*a){int b[6]={},f=1,i=48,j=0;char c[48];for(bcopy(a,c,48);--i&&c[i]-45;b[i/8]+=c[i]&4);for(;i<6;j|=1<<b[i++])f+=~j>>b[i]&b[i]>*b;n=i>6?c[i]=4,c[j=i%8*8+i/8]=0,f=x(c),c[i]=0,c[j]=4,j=x(c),f<j?f:j:f;}main(i){for(;gets(a-i--*2););printf("%d",x(a));}
| ^
main.c: In function 'x':
main.c:1:58: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration]
1 | a[14],n;x(int*a){int b[6]={},f=1,i=48,j=0;char c[48];for(bcopy(a,c,48);--i&&c[i]-45;b[i/8]+=c[i]&4);for(;i<6;j|=1<<b[i++])f+=~j>>b[i]&b[i]>*b;n=i>6?c[i]=4,c[j=i%8*8+i/8]=0,f=x(c),c[i]=0,c[j]=4,j=x(c),f<j?f:j:f;}main(i){for(;gets(a-i--*2););printf("%d",x(a));}
| ^~~~~
main.c:1:177: warning: passing argument 1 of 'x' from incompatible pointer type [-Wincompatible-pointer-types]
1 | a[14],n;x(int*a){int b[6]={},f=1,i=48,j=0;char c[48];for(bcopy(a,c,48);--i&&c[i]-45;b[i/8]+=c[i]&4);for(;i<6;j|=1<<b[i++])f+=~j>>b[i]&b[i]>*b;n=i>6?c[i]=4,c[j=i%8*8+i/8]=0,f=x(c),c[i]=0,c[j]=4,j=x(c),f<j?f:j:f;}main(i){for(;gets(a-i--*2););printf("%d",x(a));}
|
ソースコード
a[14],n;x(int*a){int b[6]={},f=1,i=48,j=0;char c[48];for(bcopy(a,c,48);--i&&c[i]-45;b[i/8]+=c[i]&4);for(;i<6;j|=1<<b[i++])f+=~j>>b[i]&b[i]>*b;n=i>6?c[i]=4,c[j=i%8*8+i/8]=0,f=x(c),c[i]=0,c[j]=4,j=x(c),f<j?f:j:f;}main(i){for(;gets(a-i--*2););printf("%d",x(a));}
testestest