#include <iostream>
template<typename T, std::size_t N>
std::size_t sizeof_array(T (&t)[N])
{
return N;
}
int main()
{
int arr[] = {0, 1, 2, 3, 4};
std::cout << sizeof_array(arr) << std::endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdGVtcGxhdGU8dHlwZW5hbWUgVCwgc3RkOjpzaXplX3QgTj4Kc3RkOjpzaXplX3Qgc2l6ZW9mX2FycmF5KFQgKCZ0KVtOXSkKewogICAgcmV0dXJuIE47Cn0KCmludCBtYWluKCkKewoJaW50IGFycltdID0gezAsIDEsIDIsIDMsIDR9OwoJc3RkOjpjb3V0IDw8IHNpemVvZl9hcnJheShhcnIpIDw8IHN0ZDo6ZW5kbDsKfQo=