回答編集履歴

3

修正

2020/01/29 06:09

投稿

LouiS0616
LouiS0616

スコア35676

test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  int n = 10;
16
16
 
17
- std::vector<int> vec(n, 10);
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/HrTTnlHjRLU1uYmB)
35
+ **実行結果** [Wandbox](https://wandbox.org/permlink/ZSuGGvXJtPOeLDnU)
36
36
 
37
37
  ```
38
38
 

2

修正

2020/01/29 06:09

投稿

LouiS0616
LouiS0616

スコア35676

test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  int n = 10;
16
16
 
17
- std::vector<int> vec = std::vector(n, 0);
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/dbd0dgVdpTB5wefw)
35
+ **実行結果** [Wandbox](https://wandbox.org/permlink/HrTTnlHjRLU1uYmB)
36
36
 
37
37
  ```
38
38
 

1

修正

2020/01/29 03:26

投稿

LouiS0616
LouiS0616

スコア35676

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/HUL7ZAA5GyHr6MKG)
35
+ **実行結果** [Wandbox](https://wandbox.org/permlink/dbd0dgVdpTB5wefw)
36
36
 
37
37
  ```
38
38