QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#482058#7104. Halting ProblemHuangHanShengCompile Error//C++111.4kb2024-07-17 17:00:472024-07-17 17:00:48

Details

answer.code: In function ‘int main()’:
answer.code:59:16: error: cannot convert ‘std::vector<std::vector<long long int> >’ to ‘void*’
   59 |         memset(dp, 0, sizeof(dp));
      |                ^~
      |                |
      |                std::vector<std::vector<long long int> >
In file included from /usr/include/features.h:461,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h:679,
                 from /usr/include/c++/13/cassert:43,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:33,
                 from answer.code:1:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:59:1: note:   initializing argument 1 of ‘void* memset(void*, int, size_t)’
   59 | __NTH (memset (void *__dest, int __ch, size_t __len))
      | ^~~~~
answer.code: In function ‘long long int dpi(long long int, long long int)’:
answer.code:53:1: warning: control reaches end of non-void function [-Wreturn-type]
   53 | }
      | ^