Compiler output
prog.cpp: In function 'int main()':
prog.cpp:21:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
prog.cpp:23:35: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
In file included from prog.cpp:2:0:
/usr/include/string.h:143:12: error: initializing argument 1 of 'int strcmp(const char*, const char*)' [-fpermissive]
prog.cpp:23:35: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
In file included from prog.cpp:2:0:
/usr/include/string.h:143:12: error: initializing argument 2 of 'int strcmp(const char*, const char*)' [-fpermissive]
prog.cpp:32:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
prog.cpp:34:35: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
In file included from prog.cpp:2:0:
/usr/include/string.h:143:12: error: initializing argument 1 of 'int strcmp(const char*, const char*)' [-fpermissive]
prog.cpp:34:35: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
In file included from prog.cpp:2:0:
/usr/include/string.h:143:12: error: initializing argument 2 of 'int strcmp(const char*, const char*)' [-fpermissive]