News for hackers. Stuff that matters.
Re:C++ basics for competitive programming by spdionis on Friday March 04, 2016 @01:52PM (#11225966)
Just curious, what should you use instead?
Re:C++ basics for competitive programming by scott_s on Friday March 04, 2016 @01:57PM (#11226006)

  vector<vector<int>>
Prior to C++11, the code above would fail to compile. The lexer would see the final ">>" and assume it was the out-stream operator. This was such an annoying issue that they eventually changed the grammar so that the above would compile as expected.
Re:C++ basics for competitive programming by svalorzen on Friday March 04, 2016 @01:55PM (#11225988)
He's talking about the fact that older compilers used to get confused if you happened to open/close multiple template tags in sequence; i.e. "<<" or ">>". These were mistaken for operators, and the code failed to compile. Nowadays there's no need to keep them separated, and compilers parse them correctly.
Re:C++ basics for competitive programming by jzwinck on Friday March 04, 2016 @02:19PM (#11226180)
Matrix2D<int>. Removing a space from between the brackets misses the forest.