You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was thinking of C++ macros. For example, a macro for a for loop in the range [l,r]:
#define fore(i, l, r) for (int i = (int)(l); i <= (int)(r); i++). These would be useful to add to a competitive programming repo.
I'm not sure - this is 100% my personal opinion, that those macro defines should be discouraged. These tend to lead to bad coding practices later on. IMO, if we were to mention these techniques, we would need to add a strong caution against using them in regular programming.
I think you should add useful c++ shorthands.
The text was updated successfully, but these errors were encountered: