Job 16241

Owner
Cosmin Pascaru
Problem
Registration Plates
Contest
MindCoding 2016 Round 4 (Div. 2)
Source
1.39KB
Result
Accepted

Compiler output

prog.cpp: In function 'bool check(char*, int)':
prog.cpp:7:17: warning: NULL used in arithmetic [-Wpointer-arith]
     if (s[x] == NULL) return true;
                 ^
prog.cpp: In function 'int main()':
prog.cpp:29:45: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
             if (isupper(s[x]) && isupper(s[x+1]) && isupper(s[x+2]) && check(s, x+3)) {cout << "Correct!\n"; continue;}
                                             ^

Results

Test numberResultTime
1Ok0.2550s
Questions?

Sponsors Gold