Problem distribution
User Batigol
Submission Time 2025-11-22 11:40:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

distribution.cpp: In function ‘void perm1(std::pair<long long int, long long int>&, long long int&, long long int&, long long int&, long long int&)’:
distribution.cpp:16:48: error: cannot bind non-const lvalue reference of type ‘std::pair<long long int, long long int>&’ to an rvalue of type ‘std::pair<long long int, long long int>’
16 | perm1({temp, mask.second}, a+arr[i], b, i+1, n);
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from distribution.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:341:12: note: after user-defined conversion: ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = long long int&; _U2 = long long int&; typename std::enable_