Compiler output
prog.cpp: In function 'int main()':
prog.cpp:18:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (s2[j]!=' ' && j<strlen(s2))
^
prog.cpp:25:76: warning: NULL used in arithmetic [-Wpointer-arith]
else if (s[0]>='A' && s[0]<='Z' && s[1]>='A' && s[2]<='Z' && s[2]==NULL)
^
prog.cpp:32:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (s2[j]!=' ' && j<strlen(s2))
^
prog.cpp:38:72: warning: NULL used in arithmetic [-Wpointer-arith]
if (s[0]>='0' && s[0]<='9' && s[1]>='0' && s[1]<='9' && (s[2]==NULL || (s[2]>='0' && s[2]<='9' && ok2==1)) && s[3]==NULL)
^
prog.cpp:38:125: warning: NULL used in arithmetic [-Wpointer-arith]
if (s[0]>='0' && s[0]<='9' && s[1]>='0' && s[1]<='9' && (s[2]==NULL || (s[2]>='0' && s[2]<='9' && ok2==1)) && s[3]==NULL)
^
prog.cpp:46:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (s2[j]!=' ' && j<strlen(s2))
^
prog.cpp:52:97: warning: NULL used in arithmetic [-Wpointer-arith]
if (s[0]>='A' && s[0]<='Z' && s[1]>='A' && s[1]<='Z' && s[2]>='A' && s[2]<='Z' && s[3]==NULL)
^