Skip to content

Commit a0911c2

Browse files
committed
Update Sorting-vectors-deque-and-friend.cpp
1 parent 5bfed93 commit a0911c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Standard Template Library/Sorting-vectors-deque-and-friend.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include<iostream>
55
#include<vector>
6+
#include<algorithm>
67

78
using namespace std;
89

@@ -27,6 +28,8 @@ int main() {
2728
tests.push_back(Test(7, "Raj"));
2829
tests.push_back(Test(3, "vicky"));
2930

31+
sort(tests.begin(), tests.end());
32+
3033
for (int i = 0; i < tests.size(); i++){
3134
tests[i].print();
3235
}

0 commit comments

Comments
 (0)