[ create a new paste ] login | about

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

C, pasted on Sep 20:
1
2
3
4
5
6
7
8
9
10
11
FILE *fp1;

	fp1 = fopen("lena.bmp","rb");
		


		for(M = 0; M < 512; M++){
		for(N = 0; N <512; N++){
		fscanf(fp1,"%d",&I[M][N]);
   }
} 


Output:
1
2
3
4
5
6
7
8
Line 3: warning: data definition has no type or storage class
Line 3: error: conflicting types for 'fp1'
Line 1: error: previous declaration of 'fp1' was here
Line 3: warning: initialization makes integer from pointer without a cast
Line 3: error: initializer element is not constant
Line 7: error: expected identifier or '(' before 'for'
Line 7: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
Line 7: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token


Create a new paste based on this one


Comments: