foo.cpp: In function 'void print(int*)':
foo.cpp:15:30: error: 'sprintf' was not declared in this scope
foo.cpp:16:48: error: 'printf' was not declared in this scope
foo.cpp:17:21: error: 'printf' was not declared in this scope
foo.cpp:19:12: error: 'printf' was not declared in this scope
foo.cpp: In function 'int main()':
foo.cpp:22:19: error: 'scanf' was not declared in this scope
foo.cpp:23:28: error: 'printf' was not declared in this scope
foo.cpp:28:14: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
foo.cpp:40:50: error: 'memcpy' was not declared in this scope
foo.cpp:40:108: error: 'memcpy' was not declared in this scope
foo.cpp:41:33: error: 'memset' was not declared in this scope
foo.cpp:55:36: error: 'memcpy' was not declared in this scope