/in/foo.cc: In function 'int equal(char*, char*)':
/in/foo.cc:13:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (int i=0;i<l1;i++) if (s1[i]!=s2[i]) return 0;return 1;
^~~
/in/foo.cc:13:53: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for (int i=0;i<l1;i++) if (s1[i]!=s2[i]) return 0;return 1;
^~~~~~
/in/foo.cc: In function 'int check_1(int)':
/in/foo.cc:17:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if (!equal(s[k][num[k]],"guilty.")||num[k]<3||num[k]>4) return 2;
^
/in/foo.cc:18:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if (s[k][1][0]!='I'||s[k][1][1]!='\0'||!equal(s[k][2],"am")) return 2;
^
/in/foo.cc:19:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if (num[k]==4) if (!equal(s[k][3],"not")) return 2;
^
/in/foo.cc:21:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (num[k]==3) return 1;return 0;
^~
/in/foo.cc:21:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if (num[k]==3) return 1;return 0;
^~~~~~
/in/foo.cc: In function 'int check_2(int)':
/in/foo.cc:25:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if (!equal(s[k][num[k]],"guilty.")||num[k]<3||num[k]>4) return 2;
^
/in/foo.cc:26:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if (!equal(s[k][2],"is")) return 2;
^
/in/foo.cc:27:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if (num[k]==4) if (!equal(s[k][3],"not")) return 2;
^
/in/foo.cc:29:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (num[k]==3) return 1;return 0;
^~
/in/foo.cc:29:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if (num[k]==3) return 1;return 0;
^~~~~~
/in/foo.cc: In function 'int check_3(int)':
/in/foo.cc:33:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if (num[k]!=3||!equal(s[k][1],"Today")||!equal(s[k][2],"is")) return 2;
^
/in/foo.cc:33:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
if (num[k]!=3||!equal(s[k][1],"Today")||!equal(s[k][2],"is")) return 2;
^
/in/foo.cc: In function 'int OK(char)':
/in/foo.cc:52:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
inline int OK(char ch){return (ch>='A'&&ch<='Z'||ch>='a'&&ch<='z');}
~~~~~~~^~~~~~~~~