質問編集履歴
1
エラーコード
title
CHANGED
File without changes
|
body
CHANGED
@@ -31,6 +31,11 @@
|
|
31
31
|
n = sizeof(src)-1;
|
32
32
|
|
33
33
|
for (int i=0;i<n;i++){
|
34
|
-
|
34
|
+
dst[i] = src[n - (i+1)];
|
35
35
|
}
|
36
|
-
}
|
36
|
+
}
|
37
|
+
|
38
|
+
エラーメッセージ
|
39
|
+
/usr/bin/ld: /tmp/ccnhcU0l.o: in function `main':
|
40
|
+
5-9.cpp:(.text+0xf2): undefined reference to `reverse(char const*, char*)'
|
41
|
+
collect2: error: ld returned 1 exit status
|