Job 15213

Owner
Eric P. Stavarache
Problem
Lumber Jack and Cycles
Source
3.04KB
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.2645s
2Ok0.2637s
3Ok0.2629s
4Ok0.2666s
5Ok0.2652s
6Ok0.2778s
7Ok0.2754s
8Wrong answer0.3183s
Questions?

Sponsors Gold