sabah 7 ye kadar güncel.

elimde şöyle bişey var ama yanlış diyorlar.Doğrusunu bulamazsam bunu yazıp vericem sabah.

#include<iostream.h>
int main()
{
 	int a=2,b,i,j,d=0,c=0;
    int mata[b][2];
    cout<<"KAC KISININ NOTUNU GIRECEKSINIZ    : ";
    cin>>b;
    mata[b][2];
    for(i=0;i<b;i++)
{
cout<<i+1<<" . OGRENCININ VIZE NOTUNU GIRINIZ : ";
cin>>mata[i][0];
cout<<i+1<<" . OGRENCININ FINAL NOTUNU GIRINIZ: ";
cin>>mata[i][1];
}    
        
        cout<<"NOT MATRISI:  "<<endl;
        cout<<"**********************: "<<endl<<endl;
        cout<<"vize  final"<<endl;
for(int k=0;k<b;k++)
{
		for(int l=0;l<2;l++) 
		cout<<" "<<mata[k][l]<<"     ";
		cout<<endl;
	d=d+mata[k][0];
	c=c+mata[k][1];	
	
}	
		cout<<"vize ort: "<<d/b<<endl;
        cout<<"final ort: "<<c/b<<endl;
		
		system("pause");
}