結果

問題 No.597 concat
ユーザー monburan_0401monburan_0401
提出日時 2018-09-14 13:12:27
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 243 bytes
コンパイル時間 865 ms
コンパイル使用メモリ 27,204 KB
実行使用メモリ 4,568 KB
最終ジャッジ日時 2023-09-18 08:26:31
合計ジャッジ時間 1,623 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
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 -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: 関数 ‘main’ 内:
main.c:10:17: 警告: implicit declaration of function ‘gets’; did you mean ‘fgets’? [-Wimplicit-function-declaration]
   10 |                 gets(S[i]);
      |                 ^~~~
      |                 fgets
/tmp/ccSG0pHu.o: In function `main':
main.c:(.text.startup+0x3d): warning: the `gets' function is dangerous and should not be used.

ソースコード

diff #

#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