結果
問題 |
No.11 カードマッチ
|
ユーザー |
👑 ![]() |
提出日時 | 2016-02-13 20:44:38 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 181 bytes |
コンパイル時間 | 91 ms |
コンパイル使用メモリ | 19,840 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-11 20:01:22 |
合計ジャッジ時間 | 788 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | s[101],k[101];w,p,q,i,x,y,t;main(h){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++])p*=p!=s[i];w=!printf("%d",x*h-t+(w-x)*y);} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int] main.c:1:8: warning: type defaults to ‘int’ in declaration of ‘k’ [-Wimplicit-int] 1 | s[101],k[101];w,p,q,i,x,y,t;main(h){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++])p*=p!=s[i];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,p,q,i,x,y,t;main(h){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++])p*=p!=s[i];w=!printf("%d",x*h-t+(w-x)*y);} | ^ main.c:1:15: warning: type defaults to ‘int’ in declaration of ‘w’ [-Wimplicit-int] main.c:1:17: warning: type defaults to ‘int’ in declaration of ‘p’ [-Wimplicit-int] 1 | s[101],k[101];w,p,q,i,x,y,t;main(h){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++])p*=p!=s[i];w=!printf("%d",x*h-t+(w-x)*y);} | ^ main.c:1:19: warning: type defaults to ‘int’ in declaration of ‘q’ [-Wimplicit-int] 1 | s[101],k[101];w,p,q,i,x,y,t;main(h){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++])p*=p!=s[i];w=!printf("%d",x*h-t+(w-x)*y);} | ^ main.c:1:21: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] 1 | s[101],k[101];w,p,q,i,x,y,t;main(h){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++])p*=p!=s[i];w=!printf("%d",x*h-t+(w-x)*y);} | ^ main.c:1:23: warning: type defaults to ‘
ソースコード
s[101],k[101];w,p,q,i,x,y,t;main(h){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++])p*=p!=s[i];w=!printf("%d",x*h-t+(w-x)*y);}