結果

問題 No.552 十分簡単な星1の問題
ユーザー cnyankocnyanko
提出日時 2017-11-27 14:05:08
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 138 bytes
コンパイル時間 313 ms
コンパイル使用メモリ 26,312 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-08-18 07:20:53
合計ジャッジ時間 5,530 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
4,376 KB
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 -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
testcase_28 RE -
testcase_29 RE -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 RE -
testcase_38 RE -
testcase_39 RE -
testcase_40 RE -
testcase_41 RE -
testcase_42 RE -
testcase_43 RE -
testcase_44 RE -
testcase_45 RE -
testcase_46 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: 関数 ‘main’ 内:
main.c:7:5: 警告: ‘__builtin_memcpy’ writing 2 bytes into a region of size 1 [-Wstringop-overflow=]
    7 |     strcat(&in,"0");
      |     ^~~~~~~~~~~~~~~
main.c:5:10: 備考: destination object ‘in’ of size 1
    5 |     char in;
      |          ^~

ソースコード

diff #

#include<stdio.h>
#include<string.h>

int main(){
    char in;
    scanf("%s\n",&in);
    strcat(&in,"0");
    puts(&in);

    return 0;
}
0