提出 #890144


ソースコード 拡げる

#include <cstdio>
#include <cstring>
#include <cassert>
#include <algorithm>
#include <iostream>
#include <vector>

using namespace std;

#define TRACE(x) cerr << #x << " = " << x << endl

typedef long long ll;
typedef pair<int, int> P;
#define X first
#define Y second

char s[123];

int main()
{
  scanf("%s", s);
  for (int i=0; i<4; i++)
    printf("%c", s[i]);
  printf(" ");
  for (int i=4; i<12; i++)
    printf("%c", s[i]);

  return 0;
}

提出情報

提出日時
問題 A - CODEFESTIVAL 2016
ユーザ dbradac
言語 C++14 (GCC 5.4.1)
得点 0
コード長 476 Byte
結果 WA
実行時間 3 ms
メモリ 256 KiB

コンパイルエラー

./Main.cpp: In function ‘int main()’:
./Main.cpp:21:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%s", s);
                 ^

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 0 / 100
結果
WA × 3
WA × 6
セット名 テストケース
Sample 0_00.txt, 0_01.txt, 0_02.txt
All 0_00.txt, 0_01.txt, 0_02.txt, 1_00.txt, 1_01.txt, 1_02.txt
ケース名 結果 実行時間 メモリ
0_00.txt WA 3 ms 256 KiB
0_01.txt WA 2 ms 256 KiB
0_02.txt WA 2 ms 256 KiB
1_00.txt WA 3 ms 256 KiB
1_01.txt WA 3 ms 256 KiB
1_02.txt WA 3 ms 256 KiB