Problem | visitingsingapore |
---|---|
User | litcoderr |
Submission Time | 2024-09-22 16:35:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
visitingsingapore.cpp: In function ‘int main()’:
visitingsingapore.cpp:38:5: error: ‘memset’ was not declared in this scope
38 | memset(dp, -0x3f, sizeof dp);
| ^~~~~~
visitingsingapore.cpp:2:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
1 | #include <iostream>
+++ |+#include <cstring>
2 | #define se second
visitingsingapore.cpp:52:91: error: no matching function for call to ‘max(<brace-enclosed initializer list>)’
52 | f[i][j] = max({f[i - 1][j], f[i][j - 1], dp[i][j] - B * (j + 1) - B * (i + 1)});
| ^
In file included from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,