Problem sixandseven
User Daze
Submission Time 2026-06-26 16:50:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sixandseven.cpp: In function ‘int main()’:
sixandseven.cpp:8:7: error: no match for ‘operator>>’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘int’)
8 | if (N >> 6 && 7 == true) {
| ~ ^~ ~
| | |
| | int
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from sixandseven.cpp:1:
/usr/include/c++/9/cstddef:140:5: note: candidate: ‘template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(std::byte, _IntegerType)’
140 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/9/cstddef:140:5: note: template argument deduction/substitution failed:
sixandseven.cpp:8:5: note: cannot convert ‘N’ (type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}) t