i write a program that goes as follows
a part of it is:
#include <iostream>
using namespace std;
const int size=8;
const int plus[]={1,2,3,4,5,6,7};
const int minus[]={-1,-2,-3,-4,-5,-6,-7};
int vertical(int[][size],int&,int&);
int horizontal(int[][size],int&,int&);
int diagonal();
int main()
{
int board[size][size]={};
int accesibilityboard[size][size]={};
int currentrow=3;
int currentcolumn=4;
int counter=0;
}
int diagonal()
{
int temp;
temp=plus[1]; //in this line i get the error that i havent declared the array,but its there declared global in line 5!!!whats the problem?
}
the global scope isnt working as with the variables?