回答編集履歴
3
修正
test
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
int n = 10;
|
16
16
|
|
17
|
-
std::vector<int> vec(n,
|
17
|
+
std::vector<int> vec(n, 0);
|
18
18
|
|
19
19
|
|
20
20
|
|
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
|
34
34
|
|
35
|
-
**実行結果** [Wandbox](https://wandbox.org/permlink/
|
35
|
+
**実行結果** [Wandbox](https://wandbox.org/permlink/ZSuGGvXJtPOeLDnU)
|
36
36
|
|
37
37
|
```
|
38
38
|
|
2
修正
test
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
int n = 10;
|
16
16
|
|
17
|
-
std::vector<int> vec
|
17
|
+
std::vector<int> vec(n, 10);
|
18
18
|
|
19
19
|
|
20
20
|
|
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
|
34
34
|
|
35
|
-
**実行結果** [Wandbox](https://wandbox.org/permlink/
|
35
|
+
**実行結果** [Wandbox](https://wandbox.org/permlink/HrTTnlHjRLU1uYmB)
|
36
36
|
|
37
37
|
```
|
38
38
|
|
1
修正
test
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
int n = 10;
|
16
16
|
|
17
|
-
std::vector vec = std::vector(n, 0);
|
17
|
+
std::vector<int> vec = std::vector(n, 0);
|
18
18
|
|
19
19
|
|
20
20
|
|
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
|
34
34
|
|
35
|
-
**実行結果** [Wandbox](https://wandbox.org/permlink/
|
35
|
+
**実行結果** [Wandbox](https://wandbox.org/permlink/dbd0dgVdpTB5wefw)
|
36
36
|
|
37
37
|
```
|
38
38
|
|