Problem tiling
User jonathanirvings
Submission Time 2026-08-13 19:23:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

tiling.cpp: In function ‘void init(int, int)’:
tiling.cpp:24:35: error: no matching function for call to ‘std::set<std::tuple<int, int, int> >::insert(<brace-enclosed initializer list>)’
24 | sum.insert({i+j, i, j});
| ^
In file included from /usr/include/c++/9/set:61,
from tiling.cpp:4:
/usr/include/c++/9/bits/stl_set.h:509:7: note: candidate: ‘std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = std::tuple<int, int, int>; _Compare = std::less<std::tuple<int, int, int> >; _Alloc = std::allocator<std::tuple<int, int, int> >; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits&l