Problem coins
User dacashew
Submission Time 2024-05-13 10:17:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

shahrnaz.cpp: In function ‘long long int find_coin(std::vector<long long int>)’:
shahrnaz.cpp:100:6: error: no match for ‘operator^=’ (operand types are ‘long long int’ and ‘std::vector<long long int>’)
100 | ans^=b;
| ~~~^~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from shahrnaz.cpp:59:
/usr/include/c++/9/cstddef:172:3: note: candidate: ‘constexpr std::byte& std::operator^=(std::byte&, std::byte)’
172 | operator^=(byte& __l, byte __r) noexcept
| ^~~~~~~~
/usr/include/c++/9/cstddef:172:20: note: no known conversion for argument 1 from ‘long long int’ to ‘std::byte&’
172 | operator^=(byte& __l, byte __r) noexcept
| ~~~~~~^~~
In file included from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,