2017-11-27から1日間の記事一覧
https://cf17-final-open.contest.atcoder.jp/tasks/cf17_final_c
https://cf17-final-open.contest.atcoder.jp/tasks/cf17_final_b
https://cf17-final-open.contest.atcoder.jp/tasks/cf17_final_a
症状 struct Test { string &str; Test(string &arg) { this->str = arg; } }; のようにクラスを作ると、「参照が初期化されずに宣言されています」と出てコンパイルが通らない 対処法 struct Test { string &str; Test(string &arg) : str(arg) {} }; のよ…