Record Detail

Compile Error

/in/board.c:28:5: warning: data definition has no type or storage class
     board[3][3]=Black;
     ^~~~~
/in/board.c:28:5: warning: type defaults to 'int' in declaration of 'board' [-Wimplicit-int]
/in/board.c:28:17: error: invalid initializer
     board[3][3]=Black;
                 ^~~~~
/in/board.c:29:5: warning: data definition has no type or storage class
     board[4][4]=Black;
     ^~~~~
/in/board.c:29:5: warning: type defaults to 'int' in declaration of 'board' [-Wimplicit-int]
/in/board.c:29:5: error: conflicting types for 'board'
/in/board.c:28:5: note: previous definition of 'board' was here
     board[3][3]=Black;
     ^~~~~
/in/board.c:29:17: error: invalid initializer
     board[4][4]=Black;
                 ^~~~~
/in/board.c:30:5: warning: data definition has no type or storage class
     board[3][4]=White;
     ^~~~~
/in/board.c:30:5: warning: type defaults to 'int' in declaration of 'board' [-Wimplicit-int]
/in/board.c:30:5: error: conflicting types for 'board'
/in/board.c:28:5: note: previous definition of 'board' was here
     board[3][3]=Black;
     ^~~~~
/in/board.c:30:17: error: invalid initializer
     board[3][4]=White;
                 ^~~~~
/in/board.c:31:5: warning: data definition has no type or storage class
     board[4][3]=White;
     ^~~~~
/in/board.c:31:5: warning: type defaults to 'int' in declaration of 'board' [-Wimplicit-int]
/in/board.c:31:5: error: conflicting types for 'board'
/in/board.c:28:5: note: previous definition of 'board' was here
     board[3][3]=Black;
     ^~~~~
/in/board.c:31:17: error: invalid initializer
     board[4][3]=White;
                 ^~~~~
/in/board.c:32:5: warning: data definition has no type or storage class
     board[2][3]=Next;
     ^~~~~
/in/board.c:32:5: warning: type defaults to 'int' in declaration of 'board' [-Wimplicit-int]
/in/board.c:32:5: error: conflicting types for 'board'
/in/board.c:28:5: note: previous definition of 'board' was here
     board[3][3]=Black;
     ^~~~~
/in/board.c:32:17: error: invalid initializer
     board[2][3]=Next;
                 ^~~~
/in/board.c:33:5: warning: data definition has no type or storage class
     board[3][3]=Next;
     ^~~~~
/in/board.c:33:5: warning: type defaults to 'int' in declaration of 'board' [-Wimplicit-int]
/in/board.c:33:5: error: redefinition of 'board'
/in/board.c:28:5: note: previous definition of 'board' was here
     board[3][3]=Black;
     ^~~~~
/in/board.c:33:17: error: invalid initializer
     board[3][3]=Next;
                 ^~~~
/in/board.c:34:5: warning: data definition has no type or storage class
     board[5][4]=Next;
     ^~~~~
/in/board.c:34:5: warning: type defaults to 'int' in declaration of 'board' [-Wimplicit-int]
/in/board.c:34:5: error: conflicting types for 'board'
/in/board.c:28:5: note: previous definition of 'board' was here
     board[3][3]=Black;
     ^~~~~
/in/board.c:34:17: error: invalid initializer
     board[5][4]=Next;
                 ^~~~
/in/board.c:35:5: warning: data definition has no type or storage class
     board[4][5]=Next;
     ^~~~~
/in/board.c:35:5: warning: type defaults to 'int' in declaration of 'board' [-Wimplicit-int]
/in/board.c:35:5: error: conflicting types for 'board'
/in/board.c:28:5: note: previous definition of 'board' was here
     board[3][3]=Black;
     ^~~~~
/in/board.c:35:17: error: invalid initializer
     board[4][5]=Next;
                 ^~~~

Information

Submit By
Type
Submission
Homework
Lab 8 Mon
Language
C
Submit At
2024-07-17 23:55:50
Judged At
2024-07-17 23:55:50
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes