I get the following error on the first line of my array...

" syntax error before `}' token "

My eyes are about to fall out of my skull. Can someone take a look for me, everything seems to be fine, but maybe I'm blind.


Here is the code in question...

int bin[26][5]={
                  {0,0,0,0,0},(0,0,0,0,1},{0,0,0,1,0},{0,0,0,1,1},{0,0,1,0,0},{0,0,1,0,1},
                  {0,0,1,1,0},{0,0,1,1,1},{0,1,0,0,0},{0,1,0,0,1},{0,1,0,1,0},{0,1,0,1,1},
                  {0,1,1,0,0},{0,1,1,0,1},{0,1,1,1,0},{0,1,1,1,1},{1,0,0,0,0},{1,0,0,0,1},
                  {1,0,0,1,0},{1,0,0,1,1},{1,0,1,0,0},{1,0,1,0,1},{1,0,1,1,0},{1,0,1,1,1},
                  {1,1,0,0,0},{1,1,0,0,1}
                  };

I get the following error on the first line of my array...

" syntax error before `}' token "

My eyes are about to fall out of my skull. Can someone take a look for me, everything seems to be fine, but maybe I'm blind.


Here is the code in question...

int bin[26][5]={
                  {0,0,0,0,0},(0,0,0,0,1},{0,0,0,1,0},{0,0,0,1,1},{0,0,1,0,0},{0,0,1,0,1},
                  {0,0,1,1,0},{0,0,1,1,1},{0,1,0,0,0},{0,1,0,0,1},{0,1,0,1,0},{0,1,0,1,1},
                  {0,1,1,0,0},{0,1,1,0,1},{0,1,1,1,0},{0,1,1,1,1},{1,0,0,0,0},{1,0,0,0,1},
                  {1,0,0,1,0},{1,0,0,1,1},{1,0,1,0,0},{1,0,1,0,1},{1,0,1,1,0},{1,0,1,1,1},
                  {1,1,0,0,0},{1,1,0,0,1}
                  };

The thing marked in red in a round brace which should be replced by curly braces.

Hope it helped, bye.

This question has already been answered. Start a new discussion instead.