結果

問題 No.646 逆ピラミッド
ユーザー %20%20
提出日時 2018-02-11 13:27:52
言語 C90
(gcc 11.4.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 74 bytes
コンパイル時間 668 ms
コンパイル使用メモリ 22,344 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-09 23:00:15
合計ジャッジ時間 912 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
 n,x;main(y){for(y+=atoi(gets(&n));x=x?:y--;)printf(--x?&n:"\n");return 0;}
 ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int]
main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int]
 n,x;main(y){for(y+=atoi(gets(&n));x=x?:y--;)printf(--x?&n:"\n");return 0;}
   ^
main.c:1:5: warning: return type defaults to ‘int’ [-Wimplicit-int]
 n,x;main(y){for(y+=atoi(gets(&n));x=x?:y--;)printf(--x?&n:"\n");return 0;}
     ^~~~
main.c: In function ‘main’:
main.c:1:5: warning: type of ‘y’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:20: warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration]
 n,x;main(y){for(y+=atoi(gets(&n));x=x?:y--;)printf(--x?&n:"\n");return 0;}
                    ^~~~
main.c:1:25: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 n,x;main(y){for(y+=atoi(gets(&n));x=x?:y--;)printf(--x?&n:"\n");return 0;}
                         ^~~~
main.c:1:45: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 n,x;main(y){for(y+=atoi(gets(&n));x=x?:y--;)printf(--x?&n:"\n");return 0;}
                                             ^~~~~~
main.c:1:45: warning: incompatible implicit declaration of built-in function ‘printf’
main.c:1:45: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
+#include <stdio.h>
 n,x;main(y){for(y+=atoi(gets(&n));x=x?:y--;)printf(--x?&n:"\n");return 0;}
                                             ^~~~~~
main.c:1:58: warning: pointer type mismatch in conditional expression
 n,x;main(y){for(y+=atoi(gets(&n));x=x?:y--;)printf(--x?&n:"\n");return 0;}
                                                          ^
/tmp/cc17rgs2.o: In function `main':
main.c:(.text.startup+0x15): warning: the `gets' function is dangerous and should not be used.

ソースコード

diff #

n,x;main(y){for(y+=atoi(gets(&n));x=x?:y--;)printf(--x?&n:"\n");return 0;}
0