Problem coin
User popperoni
Submission Time 2025-02-23 19:58:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

coin.cpp: In function ‘void solve(long long int*, std::vector<std::vector<long long int> >, bool)’:
coin.cpp:45:25: error: conversion from ‘__gnu_cxx::__alloc_traits<std::allocator<std::unordered_set<long long int> >, std::unordered_set<long long int> >::value_type’ {aka ‘std::unordered_set<long long int>’} to non-scalar type ‘std::set<long long int>’ requested
45 | set<ll> temp=things[i];
| ^
coin.cpp:47:24: error: no matching function for call to ‘swap(std::set<long long int>&, __gnu_cxx::__alloc_traits<std::allocator<std::unordered_set<long long int> >, std::unordered_set<long long int> >::value_type&)’
47 | swap(temp,things[c]);
| ^
In file included from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/st