#include <sstream>
#include <iostream>
#include <iterator>
#include <set>
#include <algorithm>
void dothis()
{
std::istringstream afile ("1 2 10\n\n 15\n 2 5 ");
std::istream_iterator<int> abeg(afile), aend;
std::set<int> aset(abeg, aend);
std::istringstream gfile ("10 11 100 -1 0\n1 2 5\n");
std::istream_iterator<int> gbeg(gfile), gend;
std::set<int> gset(gbeg, gend);
// no files on ideone, using strings and cout
// std::ofstream cfile("c.txt");
set_symmetric_difference(aset.begin(), aset.end(),
gset.begin(), gset.end(),
std::ostream_iterator<int>(std::cout, "\n"));
}
int main()
{
dothis();
}
I2luY2x1ZGUgPHNzdHJlYW0+CiNpbmNsdWRlIDxpb3N0cmVhbT4KI2luY2x1ZGUgPGl0ZXJhdG9yPgojaW5jbHVkZSA8c2V0PgojaW5jbHVkZSA8YWxnb3JpdGhtPgp2b2lkIGRvdGhpcygpCnsKICAgc3RkOjppc3RyaW5nc3RyZWFtIGFmaWxlICgiMSAyIDEwXG5cbiAxNVxuIDIgNSAiKTsKICAgc3RkOjppc3RyZWFtX2l0ZXJhdG9yPGludD4gYWJlZyhhZmlsZSksIGFlbmQ7CiAgIHN0ZDo6c2V0PGludD4gYXNldChhYmVnLCBhZW5kKTsKCiAgIHN0ZDo6aXN0cmluZ3N0cmVhbSBnZmlsZSAoIjEwIDExIDEwMCAtMSAwXG4xIDIgNVxuIik7CiAgIHN0ZDo6aXN0cmVhbV9pdGVyYXRvcjxpbnQ+IGdiZWcoZ2ZpbGUpLCBnZW5kOwogICBzdGQ6OnNldDxpbnQ+IGdzZXQoZ2JlZywgZ2VuZCk7CgovLyBubyBmaWxlcyBvbiBpZGVvbmUsIHVzaW5nIHN0cmluZ3MgYW5kIGNvdXQKLy8gICBzdGQ6Om9mc3RyZWFtIGNmaWxlKCJjLnR4dCIpOwogICBzZXRfc3ltbWV0cmljX2RpZmZlcmVuY2UoYXNldC5iZWdpbigpLCBhc2V0LmVuZCgpLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgZ3NldC5iZWdpbigpLCBnc2V0LmVuZCgpLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RkOjpvc3RyZWFtX2l0ZXJhdG9yPGludD4oc3RkOjpjb3V0LCAiXG4iKSk7Cn0KaW50IG1haW4oKQp7CiAgICBkb3RoaXMoKTsKfQo=