Problem | coins |
---|---|
User | bribritt |
Submission Time | 2023-03-29 17:39:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
arnavaz.cpp: In function ‘int* coin_flips(std::vector<int>*, int)’:
arnavaz.cpp:6:45: error: no match for ‘operator^’ (operand types are ‘int’ and ‘std::vector<int>’)
6 | for(int i = 0; i < 64; i++) xorV = xorV ^ b[i];
| ~~~~ ^ ~~~~
| | |
| int std::vector<int>
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from arnavaz.cpp:1:
/usr/include/c++/9/cstddef:179:3: note: candidate: ‘constexpr std::byte std::operator^(std::byte, std::byte)’
179 | operator^(byte __l, byte __r) noexcept
| ^~~~~~~~
/usr/include/c++/9/cstddef:179:18: note: no known conversion for argument 1 from ‘int’ to ‘std::byte’
179 | operator^(byte __l, byte __r) noexcept
| ~~~~~^~~
In file included from /usr/include/c++/9/ios: