[ create a new paste ] login | about

Link: http://codepad.org/ri1gobZY    [ raw code | output | fork ]

C, pasted on Nov 24:
1
2
3
4
5
6
7
8
9
10
11
void DuyetCacPhanTuTamGiacDuoiDuongCheoPhu(int a[][MAX], int n)
{
	for(int i = 1; i < n; i++)
	{
		for(int j = n - i; j < n; j++)
		{
			printf("%4d",a[i][j]);
		}
	}
	
}


Output:
1
2
3
4
Line 1: error: 'MAX' undeclared here (not in a function)
In function 'DuyetCacPhanTuTamGiacDuoiDuongCheoPhu':
Line 3: error: 'for' loop initial declaration used outside C99 mode
Line 5: error: 'for' loop initial declaration used outside C99 mode


Create a new paste based on this one


Comments: