結果
| 問題 | No.11 カードマッチ |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2015-11-15 14:26:47 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 186 bytes |
| 記録 | |
| コンパイル時間 | 119 ms |
| コンパイル使用メモリ | 29,640 KB |
| 最終ジャッジ日時 | 2026-02-23 19:51:59 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | s[101],k[101];w,h,p,q,i,x,y,t;main(){for(scanf("%d%d%*d",&w,&h);~scanf("%d%d",&p,&q);x+=!!p,y+=!!q,s[t]=p,k[t++]=q)for(i=0;i<t;q=q-k[i++]?q:0)p=p-s[i]?p:0;w=!printf("%d",x*h-t+(w-x)*y);}
| ^
main.c:1:15: warning: data definition has no type or storage class
1 | s[101],k[101];w,h,p,q,i,x,y,t;main(){for(scanf("%d%d%*d",&w,&h);~scanf("%d%d",&p,&q);x+=!!p,y+=!!q,s[t]=p,k[t++]=q)for(i=0;i<t;q=q-k[i++]?q:0)p=p-s[i]?p:0;w=!printf("%d",x*h-t+(w-x)*y);}
| ^
main.c: In function ‘main’:
main.c:1:42: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | s[101],k[101];w,h,p,q,i,x,y,t;main(){for(scanf("%d%d%*d",&w,&h);~scanf("%d%d",&p,&q);x+=!!p,y+=!!q,s[t]=p,k[t++]=q)for(i=0;i<t;q=q-k[i++]?q:0)p=p-s[i]?p:0;w=!printf("%d",x*h-t+(w-x)*y);}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | s[101],k[101];w,h,p,q,i,x,y,t;main(){for(scanf("%d%d%*d",&w,&h);~scanf("%d%d",&p,&q);x+=!!p,y+=!!q,s[t]=p,k[t++]=q)for(i=0;i<t;q=q-k[i++]?q:0)p=p-s[i]?p:0;w=!printf("%d",x*h-t+(w-x)*y);}
main.c:1:159: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
1 | s[101],k[101];w,h,p,q,i,x,y,t;main(){for(scanf("%d%d%*d",&w,&h);~scanf("%d%d",&p,&q);x+=!!p,y+=!!q,s[t]=p,k[t++]=q)for(i=0;i<t;q=q-k[i++]?q:0)p=p-s[i]?p:0;w=!printf("%d",x*h-t+(w-x)*y);}
| ^~~~~~
main.c:1:159: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
ソースコード
s[101],k[101];w,h,p,q,i,x,y,t;main(){for(scanf("%d%d%*d",&w,&h);~scanf("%d%d",&p,&q);x+=!!p,y+=!!q,s[t]=p,k[t++]=q)for(i=0;i<t;q=q-k[i++]?q:0)p=p-s[i]?p:0;w=!printf("%d",x*h-t+(w-x)*y);}
testestest