Job 16556

Owner
Petru Trîmbițaș
Problem
Permudrome
Source
1.25KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'int clc(int, int)':
prog.cpp:21:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if(p==s.size()/2) return 1;
       ^
prog.cpp: In function 'int main()':
prog.cpp:44:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0; i<s.size(); ++i) ++fr[s[i]-'a'];
                 ^
prog.cpp:60:36: warning: array subscript has type 'char' [-Wchar-subscripts]
   for(int i=0; i<26; ++i) if(!fb[cm][i] && fr[i] && (nri==1 || (nri==0 && !fb[i][i]))) {
                                    ^

Results

Test numberResultTime
1Wrong answer1.5415s
Questions?

Sponsors Gold