Problem clocktower
User jamallikestocode
Submission Time 2026-07-19 11:37:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

clocktower.cpp: In function ‘int main()’:
clocktower.cpp:22:30: error: no match for ‘operator>>’ (operand types are ‘std::basic_ostream<char>’ and ‘ll’ {aka ‘long long int’})
22 | cout << "No" << '\n' >> got_hit;
| ~~~~~~~~~~~~~~~~~~~~ ^~ ~~~~~~~
| | |
| | ll {aka long long int}
| std::basic_ostream<char>
clocktower.cpp:22:30: note: candidate: ‘operator>>(int, ll {aka long long int})’ <built-in>
22 | cout << "No" << '\n' >> got_hit;
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
clocktower.cpp:22:30: note: no known conversion for argument 1 from ‘std::basic_ostream<char>’ to ‘int’
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from clocktower.cpp:1:
/usr/include/c++/9/cstddef:140:5: note: candida