結果
| 問題 | No.190 Dry Wet Moist |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-04-24 02:00:57 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 240 bytes |
| 記録 | |
| コンパイル時間 | 156 ms |
| コンパイル使用メモリ | 30,024 KB |
| 最終ジャッジ日時 | 2026-02-23 18:19:18 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 28 |
コンパイルメッセージ
main.c:2:3: warning: multi-character character constant [-Wmultichar]
2 | v['abc'],N,R,l;main(h){for(;~scanf("%d",v+N++););qsort(v+1,N-=2,4,"\x8b\7+\6\xc3");Z(R++|l++|h--,h--,>=)Z(R++|l++|h--,l++,<=)Z(v[l++]+v[h]||R++|h--,h--,>)}
| ^~~~~
main.c:2:1: warning: data definition has no type or storage class
2 | v['abc'],N,R,l;main(h){for(;~scanf("%d",v+N++););qsort(v+1,N-=2,4,"\x8b\7+\6\xc3");Z(R++|l++|h--,h--,>=)Z(R++|l++|h--,l++,<=)Z(v[l++]+v[h]||R++|h--,h--,>)}
| ^
main.c: In function ‘main’:
main.c:2:30: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
2 | v['abc'],N,R,l;main(h){for(;~scanf("%d",v+N++););qsort(v+1,N-=2,4,"\x8b\7+\6\xc3");Z(R++|l++|h--,h--,>=)Z(R++|l++|h--,l++,<=)Z(v[l++]+v[h]||R++|h--,h--,>)}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | #define Z(C,D,P)for(l=1,h=N;l<h;l<h&&(C))for(;l<h&&v[l]P-v[h];D);R=!printf("%d ",R);
main.c:1:69: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
1 | #define Z(C,D,P)for(l=1,h=N;l<h;l<h&&(C))for(;l<h&&v[l]P-v[h];D);R=!printf("%d ",R);
| ^~~~~~
main.c:2:84: note: in expansion of macro ‘Z’
2 | v['abc'],N,R,l;main(h){for(;~scanf("%d",v+N++););qsort(v+1,N-=2,4,"\x8b\7+\6\xc3");Z(R++|l++|h--,h--,>=)Z(R++|l++|h--,l++,<=)Z(v[l++]+v[h]||R++|h--,h--,>)}
| ^
main.c:1:69: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
1 | #define Z(C,D,P)for(l=1,h=N;l<h;l<h&&(C))for(;l<h&&v[l]P-v[h];D);R=!printf("%d ",R);
| ^~~~~~
main.c:2:84: note: in expansion of macro ‘Z’
2 | v['abc'],N,R,l;main(h){fo
ソースコード
#define Z(C,D,P)for(l=1,h=N;l<h;l<h&&(C))for(;l<h&&v[l]P-v[h];D);R=!printf("%d ",R);
v['abc'],N,R,l;main(h){for(;~scanf("%d",v+N++););qsort(v+1,N-=2,4,"\x8b\7+\6\xc3");Z(R++|l++|h--,h--,>=)Z(R++|l++|h--,l++,<=)Z(v[l++]+v[h]||R++|h--,h--,>)}