Problem | knightmoves |
---|---|
User | shawn |
Submission Time | 2024-07-04 19:12:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
knightmoves.cpp: In function ‘int32_t main()’:
knightmoves.cpp:15:25: error: cannot convert ‘std::pair<bool, int>’ to ‘int’
15 | memset(board, make_pair(false, 0), sizeof(board));
| ~~~~~~~~~^~~~~~~~~~
| |
| std::pair<bool, int>
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from knightmoves.cpp:1:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:59:1: note: initializing argument 2 of ‘void* memset(void*, int, size_t)’
59 | __NTH (memset (void *__dest, int __ch, size_t __len))
| ^~~~~
knightmoves.cpp:16:5: error: expected unqu