foo.cpp: In function 'int check1(int)':
foo.cpp:20:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if(!cmp(s[k][num[k]],"guilty.")||(num[k]!=3&&num[k]!=4))return 2;
^
foo.cpp:21:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if(s[k][1][0]!='I'||s[k][1][1]!='\0'||!cmp(s[k][2],"am"))return 2;
^
foo.cpp:22:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if(num[k]==4&&!cmp(s[k][3],"not"))return 2;
^
foo.cpp: In function 'int check2(int)':
foo.cpp:28:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if(!cmp(s[k][num[k]],"guilty.")||(num[k]!=3&&num[k]!=4||!cmp(s[k][2],"is")))return 2;
^
foo.cpp:28:78: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if(!cmp(s[k][num[k]],"guilty.")||(num[k]!=3&&num[k]!=4||!cmp(s[k][2],"is")))return 2;
^
foo.cpp:28:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(!cmp(s[k][num[k]],"guilty.")||(num[k]!=3&&num[k]!=4||!cmp(s[k][2],"is")))return 2;
~~~~~~~~~^~~~~~~~~~~
foo.cpp:29:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if(num[k]==4&&!cmp(s[k][3],"not"))return 2;
^
foo.cpp: In function 'int check3(int)':
foo.cpp:35:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if(num[k]!=3||!cmp(s[k][1],"Today")||!cmp(s[k][2],"is"))return 2;
^
foo.cpp:35:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if(num[k]!=3||!cmp(s[k][1],"Today")||!cmp(s[k][2],"is"))return 2;
^