Yeah but probably the site stripped the indents. cf:

void test()
{
int x=1;
if (x=1)
printf("x=1\n");
}

Code:
void test()
{
	int x=1;
	if (x=1)
		printf("x=1\n");
}