fork(16) download
  1.  
stdin
1 3 8 9 11 12 15 16 2 4 5 6 7 10 13 14
compilation info
prog.cpp: In function ‘int leftLength(int, int, const std::vector<T, std::allocator<_CharT> >&, const int&, const int&) [with T = int]’:
prog.cpp:89:   instantiated from here
prog.cpp:40: warning: suggest parentheses around && within ||
prog.cpp: In function ‘int rightLength(int, int, const std::vector<T, std::allocator<_CharT> >&, const int&, const int&) [with T = int]’:
prog.cpp:99:   instantiated from here
prog.cpp:58: warning: suggest parentheses around && within ||
prog.cpp: In function ‘void print(const std::vector<T, std::allocator<_CharT> >&) [with T = int]’:
prog.cpp:107:   instantiated from here
prog.cpp:67: warning: comparison between signed and unsigned integer expressions
stdout
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16