Correct wrong bracket

This commit is contained in:
hwannee
2018-10-26 00:21:14 -04:00
committed by Kristofer Koishigawa
parent d226f4ceaa
commit f6b7958094

View File

@ -206,10 +206,13 @@ int main()
sort(v.begin(), v.end(), [] (int i, int j) -> bool {
return i < j;
} );
cout << "Vector Contents Sorted In Ascending Order:\n";
for (int e : v)
cout << e << " ";
return 0;
for (int e : v){
cout << e << " ";
}
return 0;
}
```
### Sorting Vector In Descending Order
@ -226,9 +229,9 @@ int main(){
vector<int> v{ 10, 5, 82, 69, 64, 70, 3, 42, 28, 0 };
sort(v.begin(), v.end(), greater<int>());
cout << "Vector Contents Sorted In Ascending Order:\n";
cout << "Vector Contents Sorted In Descending Order:\n";
for(int e : v){
cout << e << " ";
cout << e << " ";
}
return 0;