foo.cpp: In function 'int main()':
foo.cpp:65:26: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[23]' [-Wformat]
foo.cpp:65:26: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[23]' [-Wformat]
foo.cpp:65:26: warning: format '%s' expects argument of type 'char*', but argument 4 has type 'char (*)[23]' [-Wformat]
foo.cpp:107:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
foo.cpp:107:44: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
foo.cpp:121:27: error: 'sort' was not declared in this scope