結果

問題 No.597 concat
ユーザー hanorver
提出日時 2017-11-25 11:21:00
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 288 bytes
コンパイル時間 680 ms
コンパイル使用メモリ 80,560 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-27 09:56:05
合計ジャッジ時間 1,120 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 11
権限があれば一括ダウンロードができます
コンパイルメッセージ
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