0_0_38837851_29247.cpp: In function 'void solve()':
0_0_38837851_29247.cpp:7:9: error: 'scanf' was not declared in this scope
7 | scanf("%d", &s[i]), dp[i] = pre[i] = 0;
| ^~~~~
0_0_38837851_29247.cpp:12:15: error: 'inf' was not declared in this scope; did you mean 'int'?
12 | tt = -inf;
| ^~~
| int
0_0_38837851_29247.cpp:15:21: error: 'max' was not declared in this scope
15 | dp[j] = max(dp[j - 1], pre[j - 1]) + s[j];
| ^~~
0_0_38837851_29247.cpp:20:5: error: 'cout' was not declared in this scope
20 | cout << tt << '\n';
| ^~~~
0_0_38837851_29247.cpp: In function 'int main()':
0_0_38837851_29247.cpp:24:13: error: 'scanf' was not declared in this scope
24 | while (~scanf("%d %d", &m, &n))
| ^~~~~
|