Job 16209

Owner
Banu Denis
Problem
Registration Plates
Contest
MindCoding 2016 Round 4 (Div. 1)
Source
1.37KB
Result
Wrong answer

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)))
                                                                        ^
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)
                                                                                                 ^

Results

Test numberResultTime
1Wrong answer0.2594s
Questions?

Sponsors Gold