Job 15198

Owner
Bodea Nicolae
Problem
Lumber Jack and Cycles
Source
0.93KB
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:58: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.2677s
2Crash (SIGSEGV)0.2789s
Questions?

Sponsors Gold