結果
| 問題 | No.182 新規性の虜 | 
| コンテスト | |
| ユーザー | 👑  testestest | 
| 提出日時 | 2016-05-16 17:58:16 | 
| 言語 | C90 (gcc 12.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 23 ms / 5,000 ms | 
| コード長 | 145 bytes | 
| コンパイル時間 | 882 ms | 
| コンパイル使用メモリ | 19,968 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-27 04:34:26 | 
| 合計ジャッジ時間 | 2,049 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 27 | 
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | x,s,a[1<<17],*p=a;c(int*a,int*b){x=*a-*b;}main(){for(;~scanf("%d",p);p++);for(qsort(a+1,p-a,4,c);--p-a;s+=*p-p[1]&&p[1]-p[2]);s=!printf("%d",s);}
      | ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int]
main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int]
    1 | x,s,a[1<<17],*p=a;c(int*a,int*b){x=*a-*b;}main(){for(;~scanf("%d",p);p++);for(qsort(a+1,p-a,4,c);--p-a;s+=*p-p[1]&&p[1]-p[2]);s=!printf("%d",s);}
      |   ^
main.c:1:5: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
    1 | x,s,a[1<<17],*p=a;c(int*a,int*b){x=*a-*b;}main(){for(;~scanf("%d",p);p++);for(qsort(a+1,p-a,4,c);--p-a;s+=*p-p[1]&&p[1]-p[2]);s=!printf("%d",s);}
      |     ^
main.c:1:15: warning: type defaults to ‘int’ in declaration of ‘p’ [-Wimplicit-int]
    1 | x,s,a[1<<17],*p=a;c(int*a,int*b){x=*a-*b;}main(){for(;~scanf("%d",p);p++);for(qsort(a+1,p-a,4,c);--p-a;s+=*p-p[1]&&p[1]-p[2]);s=!printf("%d",s);}
      |               ^
main.c:1:19: warning: return type defaults to ‘int’ [-Wimplicit-int]
    1 | x,s,a[1<<17],*p=a;c(int*a,int*b){x=*a-*b;}main(){for(;~scanf("%d",p);p++);for(qsort(a+1,p-a,4,c);--p-a;s+=*p-p[1]&&p[1]-p[2]);s=!printf("%d",s);}
      |                   ^
main.c:1:43: warning: return type defaults to ‘int’ [-Wimplicit-int]
    1 | x,s,a[1<<17],*p=a;c(int*a,int*b){x=*a-*b;}main(){for(;~scanf("%d",p);p++);for(qsort(a+1,p-a,4,c);--p-a;s+=*p-p[1]&&p[1]-p[2]);s=!printf("%d",s);}
      |                                           ^~~~
main.c: In function ‘main’:
main.c:1:56: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
    1 | x,s,a[1<<17],*p=a;c(int*a,int*b){x=*a-*b;}main(){for(;~scanf("%d",p);p++);for(qsort(a+1,p-a,4,c);--p-a;s+=*p-p[1]&&p[1]-p[2]);s=!printf("%d",s);}
      |                                                        ^~~~~
            
            ソースコード
x,s,a[1<<17],*p=a;c(int*a,int*b){x=*a-*b;}main(){for(;~scanf("%d",p);p++);for(qsort(a+1,p-a,4,c);--p-a;s+=*p-p[1]&&p[1]-p[2]);s=!printf("%d",s);}
            
            
            
        