結果
| 問題 | No.190 Dry Wet Moist |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2016-11-16 18:06:42 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 210 bytes |
| 記録 | |
| コンパイル時間 | 119 ms |
| コンパイル使用メモリ | 30,024 KB |
| 最終ジャッジ日時 | 2026-02-23 22:53:23 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 28 |
コンパイルメッセージ
main.c:2:1: warning: data definition has no type or storage class
2 | a[1<<18],s,l,r,x;main(n){for(;~scanf("%d",a-n--););qsort(a,-++n,4,"\x8b\7+\6\xc3");f(r--,<,l++)f(l++,>,r--)f(l+=a[l]<-a[r]?:x/r--,==,r)}
| ^
main.c: In function ‘main’:
main.c:2:32: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
2 | a[1<<18],s,l,r,x;main(n){for(;~scanf("%d",a-n--););qsort(a,-++n,4,"\x8b\7+\6\xc3");f(r--,<,l++)f(l++,>,r--)f(l+=a[l]<-a[r]?:x/r--,==,r)}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | #define f(P,Q,R)for(r=~n;l<r;P)x=a[l]Q-a[r]?s++,R:0;l=s=!printf("%d ",s);
main.c:1:58: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
1 | #define f(P,Q,R)for(r=~n;l<r;P)x=a[l]Q-a[r]?s++,R:0;l=s=!printf("%d ",s);
| ^~~~~~
main.c:2:84: note: in expansion of macro ‘f’
2 | a[1<<18],s,l,r,x;main(n){for(;~scanf("%d",a-n--););qsort(a,-++n,4,"\x8b\7+\6\xc3");f(r--,<,l++)f(l++,>,r--)f(l+=a[l]<-a[r]?:x/r--,==,r)}
| ^
main.c:1:58: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
1 | #define f(P,Q,R)for(r=~n;l<r;P)x=a[l]Q-a[r]?s++,R:0;l=s=!printf("%d ",s);
| ^~~~~~
main.c:2:84: note: in expansion of macro ‘f’
2 | a[1<<18],s,l,r,x;main(n){for(;~scanf("%d",a-n--););qsort(a,-++n,4,"\x8b\7+\6\xc3");f(r--,<,l++)f(l++,>,r--)f(l+=a[l]<-a[r]?:x/r--,==,r)}
| ^
ソースコード
#define f(P,Q,R)for(r=~n;l<r;P)x=a[l]Q-a[r]?s++,R:0;l=s=!printf("%d ",s);
a[1<<18],s,l,r,x;main(n){for(;~scanf("%d",a-n--););qsort(a,-++n,4,"\x8b\7+\6\xc3");f(r--,<,l++)f(l++,>,r--)f(l+=a[l]<-a[r]?:x/r--,==,r)}
testestest