D
Size: a a a
D
CD
CD
CD
D
CD
D
int arg;
std::cin >> arg;
constexpr auto res = f(arg); // errorCD
template <int x> struct s{};
constexpr auto foo(int arg) {
s<arg>(); // error: non-type template argument is not a constant expression
}AK
template <typename T, typename M>
void foo(const std::string& str, M T::*mp) {...}
AS
template <typename T, typename M>
void foo(const std::string& str, M T::*mp) {...}
AK
V
unsigned char* int32_to_chars(int n){
unsigned char bytes[4];
bytes[0] = (n >> 24) & 0xFF;
bytes[1] = (n >> 16) & 0xFF;
bytes[2] = (n >> 8) & 0xFF;
bytes[3] = n & 0xFF;
return bytes;
}AP
AS
unsigned char* int32_to_chars(int n){
unsigned char bytes[4];
bytes[0] = (n >> 24) & 0xFF;
bytes[1] = (n >> 16) & 0xFF;
bytes[2] = (n >> 8) & 0xFF;
bytes[3] = n & 0xFF;
return bytes;
}D
unsigned char* int32_to_chars(int n){
unsigned char bytes[4];
bytes[0] = (n >> 24) & 0xFF;
bytes[1] = (n >> 16) & 0xFF;
bytes[2] = (n >> 8) & 0xFF;
bytes[3] = n & 0xFF;
return bytes;
}V
AP
D
V
Г
unsigned char* int32_to_chars(int n){
unsigned char bytes[4];
bytes[0] = (n >> 24) & 0xFF;
bytes[1] = (n >> 16) & 0xFF;
bytes[2] = (n >> 8) & 0xFF;
bytes[3] = n & 0xFF;
return bytes;
}