aboutsummaryrefslogtreecommitdiff
path: root/Template
diff options
context:
space:
mode:
authorAnthony Wang2020-12-15 14:48:14 -0600
committerAnthony Wang2020-12-15 14:48:14 -0600
commit42b89cfb56dba3ab10d8a571a64818185613dfe4 (patch)
tree96f57910d62c772a01d12c934d9d9a15598736e9 /Template
parentee9de380fab7aef3648972a0e8ea942a4df61c8b (diff)
Update usaco.cpp
Diffstat (limited to 'Template')
-rw-r--r--Template/usaco.cpp2
1 files changed, 1 insertions, 1 deletions
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 <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/rope>
-#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