結果
問題 | No.83 最大マッチング |
ユーザー |
👑 ![]() |
提出日時 | 2015-08-27 06:17:49 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 67 bytes |
コンパイル時間 | 69 ms |
コンパイル使用メモリ | 19,456 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-18 14:58:19 |
合計ジャッジ時間 | 548 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 10 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | f;main(a){for(scanf("%d",&a);a;!f++?a/=2:a--)putchar(49+a%2*!f*6);} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘f’ [-Wimplicit-int] main.c:1:3: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | f;main(a){for(scanf("%d",&a);a;!f++?a/=2:a--)putchar(49+a%2*!f*6);} | ^~~~ main.c: In function ‘main’: main.c:1:3: warning: type of ‘a’ defaults to ‘int’ [-Wimplicit-int] main.c:1:15: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | f;main(a){for(scanf("%d",&a);a;!f++?a/=2:a--)putchar(49+a%2*!f*6);} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | f;main(a){for(scanf("%d",&a);a;!f++?a/=2:a--)putchar(49+a%2*!f*6);} main.c:1:15: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | f;main(a){for(scanf("%d",&a);a;!f++?a/=2:a--)putchar(49+a%2*!f*6);} | ^~~~~ main.c:1:15: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:46: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration] 1 | f;main(a){for(scanf("%d",&a);a;!f++?a/=2:a--)putchar(49+a%2*!f*6);} | ^~~~~~~ main.c:1:46: note: include ‘<stdio.h>’ or provide a declaration of ‘putchar’
ソースコード
f;main(a){for(scanf("%d",&a);a;!f++?a/=2:a--)putchar(49+a%2*!f*6);}