foo.cpp: In function 'void work(int, int, int)':
foo.cpp:8:26: error: incompatible types in assignment of 'char' to 'char [5000]'
foo.cpp:9:28: error: incompatible types in assignment of 'char' to 'char [5000]'
foo.cpp:10:25: error: incompatible types in assignment of 'char' to 'char [5000]'
foo.cpp:15:18: error: invalid conversion from 'int*' to 'int' [-fpermissive]
foo.cpp:4:6: error: initializing argument 2 of 'void work(int, int, int)' [-fpermissive]
foo.cpp:16:18: error: invalid conversion from 'int*' to 'int' [-fpermissive]
foo.cpp:4:6: error: initializing argument 1 of 'void work(int, int, int)' [-fpermissive]
foo.cpp:17:20: error: invalid conversion from 'int*' to 'int' [-fpermissive]
foo.cpp:4:6: error: initializing argument 1 of 'void work(int, int, int)' [-fpermissive]
foo.cpp:17:20: error: invalid conversion from 'int*' to 'int' [-fpermissive]
foo.cpp:4:6: error: initializing argument 2 of 'void work(int, int, int)' [-fpermissive]
foo.cpp: At global scope:
foo.cpp:20:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]