0_0_33198368_17075.cpp: In function 'int main()':
0_0_33198368_17075.cpp:8:18: error: 'N' was not declared in this scope
int t, m0, m[N];
^
0_0_33198368_17075.cpp:15:29: error: 'm' was not declared in this scope
scanf("%d%lf", &m[i], &p[i]);
^
0_0_33198368_17075.cpp:15:36: error: 'p' was not declared in this scope
scanf("%d%lf", &m[i], &p[i]);
^
0_0_33198368_17075.cpp:18:16: error: 'ans' was not declared in this scope
memset(ans, 0, sizeof(ans));
^
0_0_33198368_17075.cpp:21:35: error: 'm' was not declared in this scope
for(int j = sum; j >= m[i]; j --){
^
0_0_33198368_17075.cpp:22:58: error: 'p' was not declared in this scope
ans[j] = max(ans[j], ans[j - m[i]] *(1 - p[i]));
^
|