From 19fc81c988af048c90ffcc4109c4264da128f978 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Wed, 1 Mar 2017 22:46:13 +0100 Subject: Fix warnings; array -> pair --- main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.cpp b/main.cpp index 736845a..1f41077 100644 --- a/main.cpp +++ b/main.cpp @@ -219,7 +219,7 @@ int main(int argc,char **argv){ vector teams; bool opt_pos = false; - vector> positions; // TODO: use pair? + vector> positions; int k = 1; // Increase past options; @@ -233,14 +233,14 @@ int main(int argc,char **argv){ assert(f); teams.push_back(assemble(preprocess(f))); if(opt_pos) { - positions.push_back({(int)strtol(argv[i+1],NULL,10), (int)strtol(argv[i+2],NULL,10)}); // TODO: check if i>argc + positions.emplace_back((int)strtol(argv[i+1],NULL,10), (int)strtol(argv[i+2],NULL,10)); // TODO: check if i>argc i += 2; } } - for(int i=0; i