回答編集履歴
1
コードの修正
test
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
`while (cin >> data_type1
|
1
|
+
`while (cin >> data_type1 && data_type1 != "-1"s && cin >> x >> data_type2 >> y) {`
|
2
2
|
としてみたらどうですか?
|
3
3
|
`"-1"s` がダメなら、`string("-1")` で OK のはずです。
|