template Square() { signal input in; signal output out; out <== in*in; } template Main(n) { signal input in; signal output out; component squares[n]; var i; for (i=0; i out; } component main = Main(3);