12345678910111213141516171819202122232425 |
- #include <filesystem>
- #include <fstream>
- #include <iostream>
- int main(int argc, const char* argv[])
- {
- if (argc < 1)
- return 1;
- std::ifstream file(argv[1]);
- for (std::string line; getline(file, line);)
- if (!std::filesystem::exists(line.substr(line.rfind('/') + 1)))
- std::cout << line << std::endl;
- file.close();
- }
|