Problem | pigeonnests |
---|---|
User | Sans12345 |
Submission Time | 2023-02-28 19:08:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pigeonnests.cpp: In function ‘int main()’:
pigeonnests.cpp:40:23: error: no match for ‘operator=’ (operand types are ‘std::pair<long long int, long long int>’ and ‘ll’ {aka ‘long long int’})
40 | ans = B;
| ^
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 pigeonnests.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:378:7: note: candidate: ‘std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(typename std::conditional<std::__and_<std::is_copy_assignable<_T1>, std::is_copy_assignable<_T2> >::value, const std::pair<_T1, _T2>&, const std::__nonesuch_no_braces&>::type) [with _T1 = long long int; _T2 = long long int; typename std::conditional<std::__an