Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
1
18305R006-18305R009-18305R010-git
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
RAMEESH PAUL
18305R006-18305R009-18305R010-git
Commits
e713d38f
Commit
e713d38f
authored
Sep 21, 2018
by
Abhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update usage in main.cpp
parent
af6014b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
main.cpp
main.cpp
+4
-4
No files found.
main.cpp
View file @
e713d38f
...
@@ -5,16 +5,16 @@
...
@@ -5,16 +5,16 @@
using
namespace
std
;
using
namespace
std
;
int
main
(){
int
main
(){
int
n
;
int
n
,
index1
,
index2
;
vector
<
int
>
vin
;
vector
<
int
>
vin
;
vector
<
int
>
vout
;
vector
<
int
>
vout
;
cin
>>
n
;
cin
>>
n
>>
index1
>>
index2
;
for
(
int
i
=
1
;
i
<=
n
;
i
++
){
for
(
int
i
=
1
;
i
<=
n
;
i
++
){
int
temp
;
int
temp
;
cin
>>
temp
;
cin
>>
temp
;
vin
.
push_back
(
temp
);
vin
.
push_back
(
temp
);
}
}
vout
=
sort_custom
(
vin
);
vout
=
sort_custom
(
vin
,
index1
,
index2
);
for
(
auto
i
=
vout
.
begin
();
i
!=
vout
.
end
();
++
i
)
for
(
auto
i
=
vout
.
begin
();
i
!=
vout
.
end
();
++
i
)
cout
<<
*
i
<<
" "
;
cout
<<
*
i
<<
" "
;
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment