diff options
author | Anthony Wang | 2020-12-15 14:48:14 -0600 |
---|---|---|
committer | Anthony Wang | 2020-12-15 14:48:14 -0600 |
commit | 42b89cfb56dba3ab10d8a571a64818185613dfe4 (patch) | |
tree | 96f57910d62c772a01d12c934d9d9a15598736e9 | |
parent | ee9de380fab7aef3648972a0e8ea942a4df61c8b (diff) |
Update usaco.cpp
-rw-r--r-- | Template/usaco.cpp | 2 |
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 |