From ceb72402747d54ad7022d5717990cfc8e2c375b7 Mon Sep 17 00:00:00 2001 From: APTX Date: Tue, 30 Nov 2010 19:12:55 +0100 Subject: [PATCH] gcc fixes --- shared/shared.h | 1 + tal-algorithm/main.cpp | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/shared/shared.h b/shared/shared.h index f2c7ee1..5770224 100644 --- a/shared/shared.h +++ b/shared/shared.h @@ -1,4 +1,5 @@ #include +#include bool atoi_wrapper(const char *s, int *result) { diff --git a/tal-algorithm/main.cpp b/tal-algorithm/main.cpp index f0a6a1f..a810a2c 100644 --- a/tal-algorithm/main.cpp +++ b/tal-algorithm/main.cpp @@ -2,6 +2,8 @@ #include #include #include +#include +#include #include "../shared/shared.h" using namespace std; @@ -273,6 +275,7 @@ int main(int argc, char **argv) bool run_greedy_LowestWeight = false; bool run_greedy_BestRatio = false; int runs = 1; + Problem *p = 0; if (argc < 2) goto help; @@ -310,7 +313,7 @@ int main(int argc, char **argv) } bool success; - Problem *p = read_problem(cin, &success); + p = read_problem(cin, &success); if (!success) { -- 2.52.0