0_0_39679280_1967.cpp:1:2: error: stray '#' in program
1 | v#include<bits/stdc++.h>
| ^
0_0_39679280_1967.cpp:1:1: error: 'v' does not name a type
1 | v#include<bits/stdc++.h>
| ^
0_0_39679280_1967.cpp: In function 'int read()':
0_0_39679280_1967.cpp:8:14: error: 'getchar' was not declared in this scope
8 | char c = getchar();
| ^~~~~~~
0_0_39679280_1967.cpp:1:1: note: 'getchar' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | v#include<bits/stdc++.h>
0_0_39679280_1967.cpp: In function 'int main()':
0_0_39679280_1967.cpp:25:17: error: 'scanf' was not declared in this scope
25 | scanf("%lf",&p);
| ^~~~~
0_0_39679280_1967.cpp:33:17: error: 'memset' was not declared in this scope
33 | memset(dp,0,sizeof dp);
| ^~~~~~
0_0_39679280_1967.cpp:1:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
+++ |+#include <cstring>
1 | v#include<bits/stdc++.h>
0_0_39679280_1967.cpp:37:41: error: 'max' was not declared in this scope
37 | dp[j] = max(dp[j],dp[j - a[i]] * (1 - f[i]));
| ^~~
0_0_39679280_1967.cpp:42:33: error: 'printf' was not declared in this scope
42 | printf("%d\n",i);
| ^~~~~~
0_0_39679280_1967.cpp:42:33: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
|