Problem | chocolate |
---|---|
User | blackscreen1 |
Submission Time | 2025-02-09 16:53:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
chocolate.cpp: In function ‘int main()’:
chocolate.cpp:53:20: error: no matching function for call to ‘swap(long long int [((n / 2) + 1)][2], long long int [((n / 2) + 1)][2])’
53 | swap(dp[0], dp[1]);
| ^
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/stdc++.h:54,
from chocolate.cpp:1:
/usr/include/c++/9/sstream:849:5: note: candidate: ‘template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>&, std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>&)’
849 | swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x,
| ^~~~
/usr/include/c++/9/sstream:849:5: note: template argument deduction/substitution failed:
chocolate.cpp:53:20: note: mismatched types ‘std::__cxx11