結果
| 問題 |
No.566 だいたい完全二分木
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2017-09-13 11:42:24 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 81 bytes |
| コンパイル時間 | 270 ms |
| コンパイル使用メモリ | 27,648 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-07 19:43:13 |
| 合計ジャッジ時間 | 4,461 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 11 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | j,k;main(i){for(k=1<<atoi(gets(&k));i<k;i*=2)for(j=i;j<k;j+=i*2)printf("%d ",j);}
| ^
main.c:1:1: warning: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
main.c:1:3: warning: type defaults to 'int' in declaration of 'k' [-Wimplicit-int]
1 | j,k;main(i){for(k=1<<atoi(gets(&k));i<k;i*=2)for(j=i;j<k;j+=i*2)printf("%d ",j);}
| ^
main.c:1:5: warning: return type defaults to 'int' [-Wimplicit-int]
1 | j,k;main(i){for(k=1<<atoi(gets(&k));i<k;i*=2)for(j=i;j<k;j+=i*2)printf("%d ",j);}
| ^~~~
main.c: In function 'main':
main.c:1:5: warning: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:1:22: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
1 | j,k;main(i){for(k=1<<atoi(gets(&k));i<k;i*=2)for(j=i;j<k;j+=i*2)printf("%d ",j);}
| ^~~~
main.c:1:27: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
1 | j,k;main(i){for(k=1<<atoi(gets(&k));i<k;i*=2)for(j=i;j<k;j+=i*2)printf("%d ",j);}
| ^~~~
main.c:1:65: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
1 | j,k;main(i){for(k=1<<atoi(gets(&k));i<k;i*=2)for(j=i;j<k;j+=i*2)printf("%d ",j);}
| ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
+++ |+#include <stdio.h>
1 | j,k;main(i){for(k=1<<atoi(gets(&k));i<k;i*=2)for(j=i;j<k;j+=i*2)printf("%d ",j);}
main.c:1:65: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
1 | j,k;main(i){for(k=1<<atoi(gets(&k));i<k;i*=2)for(j=i;j<k;j+=i*2)printf("%d ",j);}
| ^~~~~~
main.c:1:65: note: include '<stdio.h>' or provide a declaration of 'printf'
/usr/bin/ld: /tmp/cc4hO1O8.
ソースコード
j,k;main(i){for(k=1<<atoi(gets(&k));i<k;i*=2)for(j=i;j<k;j+=i*2)printf("%d ",j);}
testestest