0_0_39154574_22364.cpp: In function 'T read()':
0_0_39154574_22364.cpp:18:17: error: there are no arguments to 'isdigit' that depend on a template parameter, so a declaration of 'isdigit' must be available [-fpermissive]
18 | for (; !isdigit (c); c = getchar ()) if (c == '-') w = -1;
| ^~~~~~~
0_0_39154574_22364.cpp:18:17: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_39154574_22364.cpp:19:16: error: there are no arguments to 'isdigit' that depend on a template parameter, so a declaration of 'isdigit' must be available [-fpermissive]
19 | for (; isdigit (c); c = getchar ()) s = (s << 1) + (s << 3) + c - '0';
| ^~~~~~~
0_0_39154574_22364.cpp: In function 'int main()':
0_0_39154574_22364.cpp:48:9: error: 'memset' was not declared in this scope
48 | memset (dp, 0, sizeof dp);
| ^~~~~~
0_0_39154574_22364.cpp:4:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
3 | # include <algorithm>
+++ |+#include <cstring>
4 | using namespace std;
|