From 42b89cfb56dba3ab10d8a571a64818185613dfe4 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Tue, 15 Dec 2020 14:48:14 -0600 Subject: Update usaco.cpp --- Template/usaco.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Template/usaco.cpp b/Template/usaco.cpp index 057e999..ba47815 100644 --- a/Template/usaco.cpp +++ b/Template/usaco.cpp @@ -2,7 +2,7 @@ #include #include #include -#define io(name) freopen((str(name)+".in").c_str(), "r", stdin), freopen((str(name)+".out").c_str(), "w", stdout) +#define io(name) if (fopen((str(name)+".in").c_str(), "r")) freopen((str(name)+".in").c_str(), "r", stdin), freopen((str(name)+".out").c_str(), "w", stdout) #define f first #define s second #define mp make_pair -- cgit v1.2.3-70-g09d2