From d9806254ecead2940060142d6b0be32915fc26cb Mon Sep 17 00:00:00 2001 From: Sandipsinh Rathod Date: Wed, 9 Oct 2024 22:00:20 -0400 Subject: [PATCH] remove unnecessary std prefix --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 1701f7a..a26b5e4 100644 --- a/main.cpp +++ b/main.cpp @@ -64,7 +64,7 @@ Moves serialize(const string &s) { if (player == "END") break; if (!isValidPlayer(player[0])) { string err = "Invalid player: " + player; - throw std::invalid_argument(err); + throw invalid_argument(err); } result.moves.push_back({player[0], x, y}); } @@ -259,7 +259,7 @@ int main(int argc, char **argv) { try { return init(argv[1]); - } catch (const std::invalid_argument &e) { + } catch (const invalid_argument &e) { cerr << e.what() << nl; return 1; }