我无法得到std :: remove_if进行编译,因为你可以看到我选择了一种工作正常的替代手动曲柄方法,编译器错误位于代码之后的列表底部.
任何帮助将非常感激.
谢谢,汤姆
#include <iostream>
#include <fstream>
#include <set>
#include <algorithm>
#include <string>
//
// Find the largest compound word composed
// of sub-words from a list.
//
// - read list from file.
//
// Psuedo Code:
//
// 1. Read Next Word from File.
// 2. Search in list for word formed from word.
// 3. if Found in List
// 4. if Found Compound is longer then Current Compound
// 5. Replace
// 6. Remove …Run Code Online (Sandbox Code Playgroud)