help needed in sqrt decomposition problem

Revision en2, by _jarvis_, 2016-07-23 01:17:19

I was learning sqrt decomposition, to practise for the same i was solving http://www.spoj.com/problems/UNTITLE1/ problem on spoj, but i am continously getting SIGSEGV error for the same, i tried my level best to debug it but was unable to solve it,moreover there is no online reference for this particular problem,

i know the hopes of getting myself help is low but still if someone wanna help , here is my code http://ideone.com/jePYPu , i tried to make it as clean as possible.

Tags sqrt-decomposition, spoj, beginner

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English _jarvis_ 2016-07-23 01:17:19 2 Tiny change: 'roblem, \ni know t' -> 'roblem, \n\ni know t'
en1 English _jarvis_ 2016-07-23 01:16:01 522 Initial revision (published)