mirror of
https://github.com/jorenchik/mdemory.git
synced 2026-03-22 00:26:21 +00:00
show answer in group questions and order question
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user