回答編集履歴
1
変数名の変更
test
CHANGED
@@ -6,13 +6,13 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
void reverse(int x[], int i, int
|
9
|
+
void reverse(int x[], int i, int j)
|
10
10
|
|
11
11
|
{
|
12
12
|
|
13
|
-
for (int t; i < --
|
13
|
+
for (int t; i < --j; i++)
|
14
14
|
|
15
|
-
t = x[i], x[i] = x[
|
15
|
+
t = x[i], x[i] = x[j], x[j] = t;
|
16
16
|
|
17
17
|
}
|
18
18
|
|