結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2017-07-29 20:08:09 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 107 bytes |
| 記録 | |
| コンパイル時間 | 131 ms |
| コンパイル使用メモリ | 29,312 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-10 20:24:20 |
| 合計ジャッジ時間 | 1,279 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 13 WA * 14 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | i,j,s,a[1<<17];main(k){for(;~scanf("%d",a+i);s-=1/k*3-2/k)for(k=j=1;j<i;j++)k+=a[i]==a[j];printf("%d",~s);}
| ^
main.c:1:1: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
main.c:1:3: warning: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
1 | i,j,s,a[1<<17];main(k){for(;~scanf("%d",a+i);s-=1/k*3-2/k)for(k=j=1;j<i;j++)k+=a[i]==a[j];printf("%d",~s);}
| ^
main.c:1:5: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
1 | i,j,s,a[1<<17];main(k){for(;~scanf("%d",a+i);s-=1/k*3-2/k)for(k=j=1;j<i;j++)k+=a[i]==a[j];printf("%d",~s);}
| ^
main.c:1:7: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
1 | i,j,s,a[1<<17];main(k){for(;~scanf("%d",a+i);s-=1/k*3-2/k)for(k=j=1;j<i;j++)k+=a[i]==a[j];printf("%d",~s);}
| ^
main.c:1:16: warning: return type defaults to 'int' [-Wimplicit-int]
1 | i,j,s,a[1<<17];main(k){for(;~scanf("%d",a+i);s-=1/k*3-2/k)for(k=j=1;j<i;j++)k+=a[i]==a[j];printf("%d",~s);}
| ^~~~
main.c: In function 'main':
main.c:1:16: warning: type of 'k' defaults to 'int' [-Wimplicit-int]
main.c:1:30: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
1 | i,j,s,a[1<<17];main(k){for(;~scanf("%d",a+i);s-=1/k*3-2/k)for(k=j=1;j<i;j++)k+=a[i]==a[j];printf("%d",~s);}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | i,j,s,a[1<<17];main(k){for(;~scanf("%d",a+i);s-=1/k*3-2/k)for(k=j=1;j<i;j++)k+=a[i]==a[j];printf("%d",~s);}
main.c:1:30: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | i,j,s,a[1<<17];main(k){for(;~scanf("%d",a+i);s-=1/k*3-2/k)for(k=j=1;j<i;j++)k+=a[i]==a[j];printf("%d",~s);}
| ^~~~~
main.c:1:30: note: include
ソースコード
i,j,s,a[1<<17];main(k){for(;~scanf("%d",a+i);s-=1/k*3-2/k)for(k=j=1;j<i;j++)k+=a[i]==a[j];printf("%d",~s);}
testestest