foo.c: In function 'work':
foo.c:8:25: error: incompatible types when assigning to type 'char[5000]' from type 'int'
foo.c:9:27: error: incompatible types when assigning to type 'char[5000]' from type 'int'
foo.c:10:24: error: incompatible types when assigning to type 'char[5000]' from type 'int'
foo.c:15:1: warning: passing argument 2 of 'work' makes integer from pointer without a cast [enabled by default]
foo.c:4:6: note: expected 'int' but argument is of type 'int *'
foo.c:16:1: warning: passing argument 1 of 'work' makes integer from pointer without a cast [enabled by default]
foo.c:4:6: note: expected 'int' but argument is of type 'int *'
foo.c:17:1: warning: passing argument 1 of 'work' makes integer from pointer without a cast [enabled by default]
foo.c:4:6: note: expected 'int' but argument is of type 'int *'
foo.c:17:1: warning: passing argument 2 of 'work' makes integer from pointer without a cast [enabled by default]
foo.c:4:6: note: expected 'int' but argument is of type 'int *'
foo.c: At top level:
foo.c:20:1: warning: return type defaults to 'int' [-Wreturn-type]
foo.c: In function 'main':
foo.c:34:1: warning: control reaches end of non-void function [-Wreturn-type]