#include <iostream>
constexpr bool strings_equal(char const * a, char const * b) {
return *a == *b && (*a == '\0' || strings_equal(a + 1, b + 1));
}
int main() {
static_assert( strings_equal("abc", "abc" ), "strings are equal");
static_assert(!strings_equal("abc", "abcd"), "strings are not equal");
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKY29uc3RleHByIGJvb2wgc3RyaW5nc19lcXVhbChjaGFyIGNvbnN0ICogYSwgY2hhciBjb25zdCAqIGIpIHsKICAgIHJldHVybiAqYSA9PSAqYiAmJiAoKmEgPT0gJ1wwJyB8fCBzdHJpbmdzX2VxdWFsKGEgKyAxLCBiICsgMSkpOwp9CgppbnQgbWFpbigpIHsKCXN0YXRpY19hc3NlcnQoIHN0cmluZ3NfZXF1YWwoImFiYyIsICJhYmMiICksICJzdHJpbmdzIGFyZSBlcXVhbCIpOwoJc3RhdGljX2Fzc2VydCghc3RyaW5nc19lcXVhbCgiYWJjIiwgImFiY2QiKSwgInN0cmluZ3MgYXJlIG5vdCBlcXVhbCIpOwoJcmV0dXJuIDA7Cn0=