1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
|
main.cpp: In function 'std::tuple<int, bool> Search(int, bool, board)':
main.cpp:226:18: warning: declaration of 'board combined()' has 'extern' and is initialized
board combined() =b;
^
main.cpp:226:22: error: invalid pure specifier (only '= 0' is allowed) before ';' token
board combined() =b;
^
main.cpp:226:22: error: function 'board combined()' is initialized like a variable
main.cpp:232:8: error: declaration of 'bool bestMove' shadows a parameter
bool bestMove = false;
^
main.cpp:233:25: error: could not convert 'w' from 'int' to 'std::tuple<int, bool>'
if(depth == 0) return w;
^
main.cpp:234:12: error: expected unqualified-id before 'int'
int x=0, int y=0;
^
main.cpp:238:19: error: no matching function for call to 'make_move(int&)'
make_move(move);
^
main.cpp:238:19: note: candidates are:
main.cpp:70:6: note: void make_move(size_t, size_t, board&)
void make_move( size_t row, size_t col, board & b )
^
main.cpp:70:6: note: candidate expects 3 arguments, 1 provided
main.cpp:95:1: note: void make_move(size_t, size_t)
make_move(size_t row, size_t col)
^
main.cpp:95:1: note: candidate expects 2 arguments, 1 provided
main.cpp:239:36: error: no matching function for call to 'Search(int, board&, bool)'
score = -Search(depth-1,b,false); // recursion
^
main.cpp:239:36: note: candidates are:
main.cpp:31:5: note: int Search(int, board)
int Search(int depth, board b);
^
main.cpp:31:5: note: candidate expects 2 arguments, 3 provided
main.cpp:224:23: note: std::tuple<int, bool> Search(int, bool, board)
std::tuple<int, bool> Search(int depth, bool bestMove, board b)
^
main.cpp:224:23: note: no known conversion for argument 2 from 'board {aka std::bitset<9ul>}' to 'bool'
main.cpp:234:7: warning: unused variable 'x' [-Wunused-variable]
int x=0, int y=0;
^
|