質問編集履歴
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -272,7 +272,7 @@
|
|
272
272
|
|
273
273
|
if (cnt != 0) {
|
274
274
|
|
275
|
-
tf_idf2->next;
|
275
|
+
tf_idf2 = tf_idf2->next;
|
276
276
|
|
277
277
|
}
|
278
278
|
|
@@ -282,7 +282,7 @@
|
|
282
282
|
|
283
283
|
naiseki += tf_idf1->tfidf * tf_idf2->tfidf;
|
284
284
|
|
285
|
-
tf_idf1->next;
|
285
|
+
tf_idf1 = tf_idf1->next;
|
286
286
|
|
287
287
|
cell *head = mk_tfidf_list(id2);
|
288
288
|
|
@@ -298,7 +298,7 @@
|
|
298
298
|
|
299
299
|
tf_idf2 = head;
|
300
300
|
|
301
|
-
tf_idf1->next;
|
301
|
+
tf_idf1 = tf_idf1->next;
|
302
302
|
|
303
303
|
cnt = 0;
|
304
304
|
|
@@ -324,7 +324,7 @@
|
|
324
324
|
|
325
325
|
size1 += tf_idf1->tfidf * tf_idf1->tfidf;
|
326
326
|
|
327
|
-
tf_idf1->next;
|
327
|
+
tf_idf1 = tf_idf1->next;
|
328
328
|
|
329
329
|
}
|
330
330
|
|
@@ -334,7 +334,7 @@
|
|
334
334
|
|
335
335
|
size2 += tf_idf2->tfidf * tf_idf2->tfidf;
|
336
336
|
|
337
|
-
tf_idf2->next;
|
337
|
+
tf_idf2 = tf_idf2->next;
|
338
338
|
|
339
339
|
}
|
340
340
|
|
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,15 +6,19 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
+
```c++
|
10
|
+
|
11
|
+
以下コード
|
12
|
+
|
9
13
|
#include <iostream>
|
10
14
|
|
11
15
|
#include <fstream>
|
12
16
|
|
13
|
-
#include <stdlib
|
17
|
+
#include <cstdlib>
|
14
|
-
|
18
|
+
|
15
|
-
#include <string
|
19
|
+
#include <cstring>
|
16
|
-
|
20
|
+
|
17
|
-
#include <math
|
21
|
+
#include <cmath>
|
18
22
|
|
19
23
|
|
20
24
|
|
@@ -260,7 +264,11 @@
|
|
260
264
|
|
261
265
|
|
262
266
|
|
267
|
+
```以下の部分で間違いがあると思われます。
|
268
|
+
|
269
|
+
コード
|
270
|
+
|
263
|
-
|
271
|
+
while (tf_idf1 != NULL) {
|
264
272
|
|
265
273
|
if (cnt != 0) {
|
266
274
|
|
@@ -341,3 +349,7 @@
|
|
341
349
|
return 0;
|
342
350
|
|
343
351
|
}
|
352
|
+
|
353
|
+
```
|
354
|
+
|
355
|
+
```
|