removed warn failures on compile
This commit is contained in:
parent
ae67c0cb26
commit
226042e61f
9
auto.cc
9
auto.cc
@ -2,8 +2,10 @@
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
const std::vector<std::string> mcquays = {
|
||||
|
||||
const vector<string> 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;
|
||||
}
|
||||
}
|
||||
|
2
init.cc
2
init.cc
@ -1,4 +1,5 @@
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
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;
|
||||
}
|
||||
|
@ -17,5 +17,5 @@ int main() {
|
||||
{"Freddie Mercury", {100, 102, 103}},
|
||||
{"Matt Bellamy", {100, 104, 105}},
|
||||
};
|
||||
return 0;
|
||||
return x;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user