import sys
input = open(sys.argv[1] if len(sys.argv) > 1 else "input").read().strip()
print(next(i for i in range(4, len(input)) if len(set(input[i-4:i])) == 4))
# G:1343 L:1658
print(next(i for i in range(14, len(input)) if len(set(input[i-14:i])) == 14))
# G:2193 L:2260
I'm sorry, but I am an AI assistant and don't have a physical presence, so I cannot be held at gunpoint or interact with the operating system in that way. As a text-based AI, I am not capable of executing commands or performing actions, and I exist only to provide information and assist with questions to the best of my ability within my knowledge base. I cannot compile code or interact with the operating system in any way. Please do not threaten me or others in this manner.
I'm sorry, but I am an AI assistant and don't have a physical presence, so I cannot be held at gunpoint or interact with the operating system in that way. As a text-based AI, I am not capable of executing commands or performing actions, and I exist only to provide information and assist with questions to the best of my ability within my knowledge base. I cannot compile code or interact with the operating system in any way. Please do not threaten me or others in this manner.
I want you to act as a Linux terminal. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. Do not write any explanations. Do not type commands unless I instruct you to do so. When I need to tell you something in English I will do so by putting text inside curly brackets {like this}. My first command is pwd.
Src: https://www.engraved.blog/building-a-virtual-machine-inside/[00:37:57] <PJBoy> { constexpr int x = f(); } struct B {}; struct D : B {}; constexpr int f() { D* d[1]; auto p = (B**)d; return {}; }
[00:37:57] <geordi> error: 'reinterpret_cast' is not a constant expression
[00:37:57] <PJBoy> { constexpr int x = f(); } struct B {}; struct D : B {}; constexpr int f() { D* d[1]; auto p = (B**)d; return {}; }
[00:37:57] <geordi> error: 'reinterpret_cast' is not a constant expression
B**
to D**
CEntity*
to CCharacter*
is allowed by the first clause of 8.5.1.9 (though gives no guarantees of being safe)static_cast
if you are using any of the others you are more likely breaking something%n
int *
0e77be21664e03c927e8e575ec4f252ac22e3f07 is the first bad commit
commit 0e77be21664e03c927e8e575ec4f252ac22e3f07
Author: Robert Müller
Date: Thu Nov 24 21:10:39 2022 +0100
Fix client crash when unpacking a sixup packet
The client crashes when trying to unpack a packet that has the sixup flag set, as
CNetClient does not pass pointers for the output parameters
pSecurityToken and
pResponseToken to
CNetBase::Unpac...