質問編集履歴

2

文法の修正

2016/11/04 05:31

投稿

wanwanwan
wanwanwan

スコア21

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,6 @@
1
1
  ```ここに言語を入力
2
2
 
3
- void Array::marge_sort(int left, int right) {
3
+ marge_sort(int left, int right) {
4
4
 
5
5
 
6
6
 
@@ -30,7 +30,7 @@
30
30
 
31
31
 
32
32
 
33
- void Array::marge(int left, int middle, int right) {
33
+ marge(int left, int middle, int right) {
34
34
 
35
35
 
36
36
 

1

文法の修正

2016/11/04 05:31

投稿

wanwanwan
wanwanwan

スコア21

test CHANGED
File without changes
test CHANGED
@@ -1,36 +1,4 @@
1
1
  ```ここに言語を入力
2
-
3
- #include <iostream>
4
-
5
- #include <vector>
6
-
7
- using namespace std;
8
-
9
-
10
-
11
- class Array {
12
-
13
- private:
14
-
15
- vector<int> array;
16
-
17
- public:
18
-
19
- void insert(int value) { array.push_back(value); }
20
-
21
- int getSize() { return (int)array.size(); }
22
-
23
- void marge_sort() { marge_sort(0, (int)array.size() - 1); }
24
-
25
- void marge_sort(int left, int right);
26
-
27
- void marge(int left, int middle, int right);
28
-
29
- void print();
30
-
31
- };
32
-
33
-
34
2
 
35
3
  void Array::marge_sort(int left, int right) {
36
4