結果
| 問題 | No.527 ナップサック容量問題 |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2017-06-20 12:35:03 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 161 bytes |
| 記録 | |
| コンパイル時間 | 59 ms |
| コンパイル使用メモリ | 25,652 KB |
| 最終ジャッジ日時 | 2026-02-21 23:58:12 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | d[1<<17];v,w,t;s,j;main(m){for(;j?d[j]>(m=d[j>v?j-v:0]+w)|!d[j]?d[j]=m:0,j--:(j=s+=v=t,~scanf("%d%d",&w,&t));m=d[t+1]);printf(m?"%d\n%d":"%d\ninf",d[t]?:1,m-1);}
| ^
main.c:1:1: error: type defaults to 'int' in declaration of 'd' [-Wimplicit-int]
main.c:1:10: warning: data definition has no type or storage class
1 | d[1<<17];v,w,t;s,j;main(m){for(;j?d[j]>(m=d[j>v?j-v:0]+w)|!d[j]?d[j]=m:0,j--:(j=s+=v=t,~scanf("%d%d",&w,&t));m=d[t+1]);printf(m?"%d\n%d":"%d\ninf",d[t]?:1,m-1);}
| ^
main.c:1:10: error: type defaults to 'int' in declaration of 'v' [-Wimplicit-int]
main.c:1:12: error: type defaults to 'int' in declaration of 'w' [-Wimplicit-int]
1 | d[1<<17];v,w,t;s,j;main(m){for(;j?d[j]>(m=d[j>v?j-v:0]+w)|!d[j]?d[j]=m:0,j--:(j=s+=v=t,~scanf("%d%d",&w,&t));m=d[t+1]);printf(m?"%d\n%d":"%d\ninf",d[t]?:1,m-1);}
| ^
main.c:1:14: error: type defaults to 'int' in declaration of 't' [-Wimplicit-int]
1 | d[1<<17];v,w,t;s,j;main(m){for(;j?d[j]>(m=d[j>v?j-v:0]+w)|!d[j]?d[j]=m:0,j--:(j=s+=v=t,~scanf("%d%d",&w,&t));m=d[t+1]);printf(m?"%d\n%d":"%d\ninf",d[t]?:1,m-1);}
| ^
main.c:1:16: warning: data definition has no type or storage class
1 | d[1<<17];v,w,t;s,j;main(m){for(;j?d[j]>(m=d[j>v?j-v:0]+w)|!d[j]?d[j]=m:0,j--:(j=s+=v=t,~scanf("%d%d",&w,&t));m=d[t+1]);printf(m?"%d\n%d":"%d\ninf",d[t]?:1,m-1);}
| ^
main.c:1:16: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
main.c:1:18: error: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
1 | d[1<<17];v,w,t;s,j;main(m){for(;j?d[j]>(m=d[j>v?j-v:0]+w)|!d[j]?d[j]=m:0,j--:(j=s+=v=t,~scanf("%d%d",&w,&t));m=d[t+1]);printf(m?"%d\n%d":"%d\ninf",d[t]?:1,m-1);}
| ^
main.c:1:20: error: return type defaults to 'int' [-Wimplicit-int]
1 | d[1<<17];v,w,t;s,j;main(m){for(;j?d[j]>(m=d[j>v?j-v:0]+w)|!d[j]?d[j]=m:0,j--:(j=s+=v=t,~s
ソースコード
d[1<<17];v,w,t;s,j;main(m){for(;j?d[j]>(m=d[j>v?j-v:0]+w)|!d[j]?d[j]=m:0,j--:(j=s+=v=t,~scanf("%d%d",&w,&t));m=d[t+1]);printf(m?"%d\n%d":"%d\ninf",d[t]?:1,m-1);}
testestest