結果

問題 No.597 concat
コンテスト
ユーザー monburan_0401
提出日時 2018-09-14 13:12:27
言語 C(gnu17)
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -std=gnu17 -Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
WA  
実行時間 -
コード長 243 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 53 ms
コンパイル使用メモリ 36,096 KB
実行使用メモリ 5,888 KB
最終ジャッジ日時 2026-07-22 01:06:11
合計ジャッジ時間 1,509 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 11
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function 'main':
main.c:10:17: warning: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   10 |                 gets(S[i]);
      |                 ^~~~
      |                 fgets
/usr/bin/ld: /tmp/ccedMwsW.o: in function `main':
main.c:(.text.startup+0x3d): 警告: the `gets' function is dangerous and should not be used.

ソースコード

diff #
raw source code

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main(void){
	int N;
	char S[10][21];
	
	scanf("%d",&N);
	
	for(int i = 0; i < N; i++){
		gets(S[i]);
	}
	for(int j = 0; j < N; j++){
		printf("%s",S[j]);
	}
	
	printf("\n");
	
	return 0;
}
0