0_0_30104514_28557.cpp: In function 'int cal(int, int)':
0_0_30104514_28557.cpp:18:30: error: 'memset' was not declared in this scope
memset(f, inf , sizeof(f));
^
0_0_30104514_28557.cpp:20:33: error: 'max' was not declared in this scope
int V = max(s1[num], s2[num]) + data * x[num] - y[num];
^
0_0_30104514_28557.cpp:25:49: error: 'min' was not declared in this scope
f[j] = min(f[j], f[j - S[i]] + P[i] );
^
0_0_30104514_28557.cpp:30:28: error: 'min' was not declared in this scope
ret = min(ret, f[i]);
^
0_0_30104514_28557.cpp: In function 'int judge(int)':
0_0_30104514_28557.cpp:44:5: error: 'cout' was not declared in this scope
cout << 1 <<'\n';
^
0_0_30104514_28557.cpp: In function 'int main()':
0_0_30104514_28557.cpp:51:30: error: 'scanf' was not declared in this scope
while(scanf("%d %d",&n,&s) != EOF && n)
^
0_0_30104514_28557.cpp:51:35: error: 'EOF' was not declared in this scope
while(scanf("%d %d",&n,&s) != EOF && n)
^
0_0_30104514_28557.cpp:67:9: error: 'cout' was not declared in this scope
cout << r << '\n';
^
|