結果
問題 | No.3004 愛国心 |
ユーザー | testestest |
提出日時 | 2015-08-09 16:33:45 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 66 bytes |
コンパイル時間 | 106 ms |
コンパイル使用メモリ | 22,604 KB |
実行使用メモリ | 4,504 KB |
最終ジャッジ日時 | 2023-09-25 07:30:35 |
合計ジャッジ時間 | 807 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
コンパイルメッセージ
main.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int] main(a){for(;a;putchar("yukicoder"[a-1]))scanf("%d",&a);return 0;} ^~~~ main.c: In function ‘main’: main.c:1:1: warning: type of ‘a’ defaults to ‘int’ [-Wimplicit-int] main.c:1:16: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration] main(a){for(;a;putchar("yukicoder"[a-1]))scanf("%d",&a);return 0;} ^~~~~~~ main.c:1:42: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] main(a){for(;a;putchar("yukicoder"[a-1]))scanf("%d",&a);return 0;} ^~~~~ main.c:1:42: warning: incompatible implicit declaration of built-in function ‘scanf’ main.c:1:42: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +#include <stdio.h> main(a){for(;a;putchar("yukicoder"[a-1]))scanf("%d",&a);return 0;} ^~~~~
ソースコード
main(a){for(;a;putchar("yukicoder"[a-1]))scanf("%d",&a);return 0;}