Job 15214

Owner
Eric P. Stavarache
Problem
Lumber Jack and Cycles
Source
3.05KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'bool detect(const std::vector<int>&)':
prog.cpp:95:10: warning: unused variable 'fnd' [-Wunused-variable]
     bool fnd = 0;
          ^
prog.cpp: In function 'int main()':
prog.cpp:167:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i = 0; i < comp.size(); ++i) {
                      ^
prog.cpp:178:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i = 0; i < comp.size(); ++i) {
                      ^
prog.cpp:184:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i = 0; i < comp.size(); ++i)
                      ^

Results

Test numberResultTime
1Ok0.2615s
2Ok0.2610s
3Ok0.2644s
4Ok0.2717s
5Ok0.2647s
6Ok0.3009s
7Ok0.2871s
8Wrong answer0.4135s
Questions?

Sponsors Gold