Job 20486

Owner
Mihai Zsisku
Problem
Words
Contest
MindCoding 2017 Final 2
Source
0.95KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'bool solve(std::string, int)':
prog.cpp:18:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0; i<s.size(); i++){
                   ^
prog.cpp:22:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int j=i+1; j<stri.size(); j++)a+=stri[j];
                             ^
prog.cpp: In function 'int main()':
prog.cpp:40:10: warning: unused variable 'ok' [-Wunused-variable]
     bool ok=false;
          ^

Results

Test numberResultTime
1Ok0.2500s
2Ok0.2485s
3Ok0.5480s
4Ok0.2561s
5Ok0.2578s
6Ok0.2572s
7Ok0.2697s
8Ok0.2578s
9Ok0.2505s
10Ok0.2483s
11Wrong answer0.2456s
Questions?

Sponsors Gold