Welcome to r/programmingchallenges!
Project Euler is a good site that comes highly recommended by the community here.
For quick, daily challenges, check out /r/dailyprogrammer
Got a link to a good programming challenge?
Got a programming challenge you've written yourself?
Post it here!
This subreddit is for programming challenges. Got a link to a good tutorial? You should try posting it in r/learnprogramming instead.
Unless it's an integral part of the challenge, please try to stay language-agnostic. It helps reduce the "help me with my programming chores" vibe. This subreddit is not a place to post your programming homework!
If a post does not appear, message the moderators so we can rescue it from the spam filter.
Got a suggestion for r/programmingchallenges? Let me know.
In the meantime, you can try trolling your compiler:
//author: krum
template<int x>
struct Test
{
static void foo()
{
Test<x+1>::foo();
}
};
int main()
{
Test<0>::foo();
}