結果

問題 No.597 concat
ユーザー hanorverhanorver
提出日時 2017-11-25 11:21:00
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 288 bytes
コンパイル時間 581 ms
コンパイル使用メモリ 80,560 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-05-05 12:29:05
合計ジャッジ時間 1,098 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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.cpp: In function 'int main()':
main.cpp:17:32: warning: 'n' is used uninitialized [-Wuninitialized]
   17 |         for (size_t i = 0; i < n; i++)
      |                                ^
main.cpp:14:13: note: 'n' was declared here
   14 |         int n;
      |             ^

ソースコード

diff #

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include <stack>
#include <cmath>
#include <queue>
#include <numeric>


int main()
{
	int n;
	std::string s;

	for (size_t i = 0; i < n; i++)
	{
		std::cin >> s;
		std::cout << s;
	}

	return 0;
}
0