結果
問題 |
No.597 concat
|
ユーザー |
![]() |
提出日時 | 2018-01-03 19:29:15 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 278 bytes |
コンパイル時間 | 146 ms |
コンパイル使用メモリ | 22,528 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-23 02:26:12 |
合計ジャッジ時間 | 2,096 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 RE * 1 |
other | AC * 1 RE * 10 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:11:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 11 | scanf("%d",&N); | ~~~~~^~~~~~~~~ main.cpp:14:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 14 | scanf("%s",b); | ~~~~~^~~~~~~~
ソースコード
/* *No.597 */ #include <stdio.h> #include <string.h> int main(void) { int N,i; char a[20]; scanf("%d",&N); for (i=0;i<N;i++) { char b[10]; scanf("%s",b); //printf("%s",b); //͂̊mFɎgB strcat(a,b); } printf("%s\n",a); return 0; }