Language
Compiler
Options
$
set s1: 1 2 3 4 5 7
set s2: 1 2 3 4 6 8
union: 1 2 3 4 5 6 7 8
intersection: 1 2 3 4
symmetric_difference: 5 6 7 8
Exit Code:
0
Author
anonymous
almost 8 years ago
Author
anonymous
almost 8 years ago
$
prog.cc:39:10: warning: unused variable 'it' [-Wunused-variable]
auto it = rng::set_union(s1, s2, rng::back_inserter(u));
^
prog.cc:46:10: warning: unused variable 'it' [-Wunused-variable]
auto it = rng::set_intersection(s1, s2, rng::back_inserter(u));
^
prog.cc:71:10: warning: unused variable 'it' [-Wunused-variable]
auto it = rng::set_symmetric_difference(
^
3 warnings generated.
set s1: 1 2 3 4 5 7
set s2: 1 2 3 4 6 8
union: 1 2 3 4 5 6 7 8
intersection: 1 2 3 4
symmetric_difference: 5 6 7 8