結果
| 問題 |
No.83 最大マッチング
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2015-08-15 23:27:29 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 66 bytes |
| コンパイル時間 | 162 ms |
| コンパイル使用メモリ | 19,840 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-18 09:44:47 |
| 合計ジャッジ時間 | 667 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 WA * 9 |
コンパイルメッセージ
main.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | main(a){for(scanf("%d",&a),putchar(49+a%2*6),a/=2;--a;puts("1"));}
| ^~~~
main.c: In function ‘main’:
main.c:1:1: warning: type of ‘a’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:13: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
1 | main(a){for(scanf("%d",&a),putchar(49+a%2*6),a/=2;--a;puts("1"));}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | main(a){for(scanf("%d",&a),putchar(49+a%2*6),a/=2;--a;puts("1"));}
main.c:1:13: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | main(a){for(scanf("%d",&a),putchar(49+a%2*6),a/=2;--a;puts("1"));}
| ^~~~~
main.c:1:13: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:1:28: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration]
1 | main(a){for(scanf("%d",&a),putchar(49+a%2*6),a/=2;--a;puts("1"));}
| ^~~~~~~
main.c:1:28: note: include ‘<stdio.h>’ or provide a declaration of ‘putchar’
main.c:1:55: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
1 | main(a){for(scanf("%d",&a),putchar(49+a%2*6),a/=2;--a;puts("1"));}
| ^~~~
main.c:1:55: note: include ‘<stdio.h>’ or provide a declaration of ‘puts’
ソースコード
main(a){for(scanf("%d",&a),putchar(49+a%2*6),a/=2;--a;puts("1"));}
testestest