提出 #1466990


ソースコード 拡げる

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

int main(void)
{
  char n[10];
  char str[10] = "ABC";

  scanf("%s", n);

  printf("%s\n", strcat(str, n));

  return (0);
}

提出情報

提出日時
問題 A - ABCxxx
ユーザ misterjune
言語 C (GCC 5.4.1)
得点 100
コード長 180 Byte
結果 AC
実行時間 1 ms
メモリ 128 KiB

コンパイルエラー

./Main.c: In function ‘main’:
./Main.c:9:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%s", n);
   ^

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 13
セット名 テストケース
Sample example0, example1, example2
All example0, example1, example2, rand0, rand1, rand2, rand3, rand4, rand5, rand6, rand7, rand8, rand9
ケース名 結果 実行時間 メモリ
example0 AC 1 ms 128 KiB
example1 AC 1 ms 128 KiB
example2 AC 1 ms 128 KiB
rand0 AC 1 ms 128 KiB
rand1 AC 1 ms 128 KiB
rand2 AC 1 ms 128 KiB
rand3 AC 1 ms 128 KiB
rand4 AC 1 ms 128 KiB
rand5 AC 1 ms 128 KiB
rand6 AC 1 ms 128 KiB
rand7 AC 1 ms 128 KiB
rand8 AC 1 ms 128 KiB
rand9 AC 1 ms 128 KiB