From 226042e61f5187f7bbdce5167089d19fff073715 Mon Sep 17 00:00:00 2001 From: "Stephen M. McQuay" Date: Sat, 5 May 2012 14:54:38 -0600 Subject: [PATCH] removed warn failures on compile --- auto.cc | 9 ++++++--- init.cc | 2 ++ init_new.cc | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/auto.cc b/auto.cc index 1810d77..371dc90 100644 --- a/auto.cc +++ b/auto.cc @@ -2,8 +2,10 @@ #include #include +using namespace std; -const std::vector mcquays = { + +const vector mcquays = { "stephen", "michael", "bryan", @@ -17,9 +19,10 @@ int func() { int main() { auto i = 5; auto j = func(); - auto s = std::string{"hello world"}; + auto s = string{"hello world"}; + cout << i << " " << j << " " << s << endl; for(auto it = mcquays.begin(); it != mcquays.end(); it++) { - std::cout << *it << std::endl; + cout << *it << endl; } } diff --git a/init.cc b/init.cc index f4e4d13..2da9e27 100644 --- a/init.cc +++ b/init.cc @@ -1,4 +1,5 @@ #include +#include using namespace std; struct Point { @@ -15,5 +16,6 @@ int main() { int x = int(42); string s2 = "hello"; int y = 42; + cout << x << " " << y << " " << endl; return 0; } diff --git a/init_new.cc b/init_new.cc index 9261829..f949b07 100644 --- a/init_new.cc +++ b/init_new.cc @@ -17,5 +17,5 @@ int main() { {"Freddie Mercury", {100, 102, 103}}, {"Matt Bellamy", {100, 104, 105}}, }; - return 0; + return x; }