>>for (int i=0;i<n;i++) >> cout << i << endl; > > > Shouldn't you put parentheses around on or the other of those > left shift operators? :-)
What atrociously obscure communication method have you loaded into your mind? This is C++! > let rec intersect lst = > function > [] -> [] > | head :: tail -> > if List.mem head lst then > head :: intersect lst tail > else > intersect lst tail > Oooooh. I like the curves on that one. Carlo