Job 14962

Owner
Bohdan Pryshchenko
Problem
Lumber Jack and Cycles
Contest
MindCoding 2016 Round 2 GAMELOFT (Div. 1)
Source
2.41KB
Result
Wrong answer

Compiler output

prog.cpp:33:0: warning: "M_PI" redefined
 #define M_PI 3.141592653589793
 ^
In file included from /usr/include/c++/4.9/cmath:44:0,
                 from /usr/include/c++/4.9/complex:44,
                 from prog.cpp:10:
/usr/include/math.h:372:0: note: this is the location of the previous definition
 # define M_PI  3.14159265358979323846 /* pi */
 ^
prog.cpp: In function 'int solve(int)':
prog.cpp:75:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i = 0; i < g[v].size(); i++)
                     ^
prog.cpp: In function 'int main()':
prog.cpp:134:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < order.size(); i++)
                    ^

Results

Test numberResultTime
1Ok0.2830s
2Ok0.2688s
3Wrong answer0.2873s
Questions?

Sponsors Gold