Main.cpp: In function 'int main()':
Main.cpp:17:52: error: too few arguments to function 'void* memset(void*, int, size_t)'
17 | double dp[n + 1][k - x + 1]; memset(dp, INT_MAX), sizeof(dp));
| ^
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/10/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/c++config.h:518,
from /usr/include/c++/10/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from Main.cpp:1:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:59:1: note: declared here
59 | __NTH (memset (void *__dest, int __ch, size_t __len))
| ^~~~~
Main.cpp:21:92: error: 'g' was not declared in this scope
21 | if (j < k - x) dp[i + 1][j + 1] = min(dp[i + 1][j + 1], dp[i][j] + (double) st[i].a / (g + 1));
| ^
Main.cpp:22:58: error: 'g' was not declared in this scope
22 | dp[i + 1][j] = min(dp[i + 1][j], dp[i][j] + (i - j < g ? (double) st[i].b / (i - j + 1) : .0));
| ^