show answer in group questions and order question

This commit is contained in:
jorenchik
2024-11-03 16:03:30 +02:00
parent 217eebcefc
commit 4da44d71ee
2 changed files with 108 additions and 37 deletions

View File

@@ -10,7 +10,7 @@
std::string readFile(const std::string& filePath) {
std::ifstream file(filePath);
if (!file.is_open()) {
throw std::runtime_error("Cannot open file: " + filePath);
throw std::runtime_error("Nevar atvērt failu: " + filePath);
}
std::string content;
@@ -33,7 +33,7 @@ int main(int argc, char* argv[]) {
debug = true;
showTimes = true;
} else {
std::cout << std::format("Unrecognized option: {}", option) << std::endl;
std::cout << std::format("Neatpazīta opcija: {}", option) << std::endl;
return 1;
}
filePath = argv[2];
@@ -48,7 +48,7 @@ int main(int argc, char* argv[]) {
std::string fileContent = readFile(filePath);
end = std::chrono::high_resolution_clock::now();
if (showTimes) {
std::cout << showTime("I/O time") << std::endl;
std::cout << showTime("I/O laiks") << std::endl;
}
auto res = transpile(fileContent);