結果
| 問題 | No.589 Counting Even |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2017-11-04 01:57:00 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 79 bytes |
| 記録 | |
| コンパイル時間 | 76 ms |
| コンパイル使用メモリ | 28,104 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-08 16:14:38 |
| 合計ジャッジ時間 | 733 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 29 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:1:14: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | main(long n){scanf("%ld",&n);printf("%ld",n+1-(1LL<<__builtin_popcountll(n)));}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | main(long n){scanf("%ld",&n);printf("%ld",n+1-(1LL<<__builtin_popcountll(n)));}
main.c:1:30: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
1 | main(long n){scanf("%ld",&n);printf("%ld",n+1-(1LL<<__builtin_popcountll(n)));}
| ^~~~~~
main.c:1:30: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
main.c:1:40: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
1 | main(long n){scanf("%ld",&n);printf("%ld",n+1-(1LL<<__builtin_popcountll(n)));}
| ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | long long int
| long int
| %lld
ソースコード
main(long n){scanf("%ld",&n);printf("%ld",n+1-(1LL<<__builtin_popcountll(n)));}
testestest