prog.cpp: In function ‘int main()’:
prog.cpp:16:35: error: ‘memcpy’ was not declared in this scope
memcpy(bytes1, obj1, sizeof(obj1));
^
prog.cpp:20:2: error: expected ‘,’ or ‘;’ before ‘unsigned’
unsigned char* bytes2 = new unsigned char[sizeof(obj2)];
^~~~~~~~
prog.cpp:21:9: error: ‘bytes2’ was not declared in this scope
memcpy(bytes2, obj2, sizeof(obj2));
^~~~~~
prog.cpp:23:52: error: ‘memcmp’ was not declared in this scope
std::cout << memcmp(bytes1, bytes2, sizeof(bytes1)) << '\n';
^