結果

問題 No.543 命題
ユーザー suppy193suppy193
提出日時 2020-03-20 14:34:55
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 128 bytes
コンパイル時間 200 ms
コンパイル使用メモリ 20,096 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-05-08 03:58:17
合計ジャッジ時間 606 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:13: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[3]’ [-Wformat=]
    6 |     scanf("%s", &p);
      |            ~^   ~~
      |             |   |
      |             |   char (*)[3]
      |             char *
main.c:6:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |     scanf("%s", &p);
      |     ^~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>

int main(void)
{
    char p[3];
    scanf("%s", &p);
    printf("%c %c\n", p[2], p[0]);
    
    return 0;
}
0