F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_39718887_7857.cpp:7:25: error: size of array 'board' is not an integral constant-expression
    7 | int isSafe(int board[N][N], int row, int col) {
      |                         ^
0_0_39718887_7857.cpp:7:22: error: size of array 'board' is not an integral constant-expression
    7 | int isSafe(int board[N][N], int row, int col) {
      |                      ^
0_0_39718887_7857.cpp:29:32: error: size of array 'board' is not an integral constant-expression
   29 | void solveNQueens(int board[N][N], int row) {
      |                                ^
0_0_39718887_7857.cpp:29:29: error: size of array 'board' is not an integral constant-expression
   29 | void solveNQueens(int board[N][N], int row) {
      |                             ^
0_0_39718887_7857.cpp: In function 'int main()':
0_0_39718887_7857.cpp:57:18: error: cannot convert 'int (*)[N]' to 'int (*)[1]'
   57 |     solveNQueens(board, 0); // ¿ªÊ¼»ØËÝ
      |                  ^~~~~
      |                  |
      |                  int (*)[N]
0_0_39718887_7857.cpp:29:23: note:   initializing argument 1 of 'void solveNQueens(int (*)[1], int)'
   29 | void solveNQueens(int board[N][N], int row) {
      |                   ~~~~^~~~~~~~~~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-23 09:41:10, Gzip enabled