Job 15088

Owner
Vidrsacu NIcu-Traian
Problem
Lumber Jack and Cycles
Contest
MindCoding 2016 Round 2 GAMELOFT (Div. 1)
Source
0.90KB
Result
Crash (SIGSEGV)

Compiler output

prog.cpp: In function 'void dfs1(int)':
prog.cpp:17:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(i=0;i!=gr[x].size();i++)
           ^
prog.cpp:15:8: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^
prog.cpp: In function 'void dfs2(int)':
prog.cpp:31:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(i=0;i!=gr[x].size();i++)
           ^
prog.cpp: In function 'int main()':
prog.cpp:54:15: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
   if(sum[i]<0);
               ^
prog.cpp:40:8: warning: unused variable 'j' [-Wunused-variable]
  int i,j,x,y,z;
        ^

Results

Test numberResultTime
1Ok0.2666s
2Crash (SIGSEGV)0.3004s
Questions?

Sponsors Gold