結果
| 問題 |
No.597 concat
|
| ユーザー |
monburan_0401
|
| 提出日時 | 2018-09-14 13:12:27 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 243 bytes |
| コンパイル時間 | 270 ms |
| コンパイル使用メモリ | 27,904 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-05 00:22:29 |
| 合計ジャッジ時間 | 1,003 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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/ccQcGqtA.o: in function `main':
main.c:(.text.startup+0x3d): 警告: the `gets' function is dangerous and should not be used.
ソースコード
#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;
}
monburan_0401