brunhilda.cpp: In function 'int DP(int)':
brunhilda.cpp:15:8: error: 'min' was not declared in this scope
resp=min(resp,DP((k/p[i])*p[i])+1);
^~~
brunhilda.cpp:15:8: note: suggested alternative: 'maxn'
resp=min(resp,DP((k/p[i])*p[i])+1);
^~~
maxn
brunhilda.cpp: In function 'int main()':
brunhilda.cpp:20:2: error: 'scanf' was not declared in this scope
scanf("%d %d",&m,&q);
^~~~~
brunhilda.cpp:31:15: error: 'printf' was not declared in this scope
if(n>=prod) printf("oo\n");
^~~~~~
brunhilda.cpp:31:15: note: suggested alternative: 'inf'
if(n>=prod) printf("oo\n");
^~~~~~
inf
brunhilda.cpp:32:8: error: 'printf' was not declared in this scope
else printf("%d\n",DP(n));
^~~~~~
brunhilda.cpp:32:8: note: suggested alternative: 'inf'
else printf("%d\n",DP(n));
^~~~~~
inf
brunhilda.cpp: In function 'int main()':
brunhilda.cpp:35:5: error: redefinition of 'int main()'
int main(){
^~~~
brunhilda.cpp:19:5: note: 'int main()' previously defined here
int main(){
^~~~
brunhilda.cpp:36:2: error: 'scanf' was not declared in this scope
scanf("%d %d",&m,&q);
^~~~~
brunhilda.cpp:48:15: error: 'printf' was not declared in this scope
if(n>=prod) printf("oo\n");
^~~~~~
brunhilda.cpp:48:15: note: suggested alternative: 'inf'
if(n>=prod) printf("oo\n");
^~~~~~
inf
brunhilda.cpp:49:8: error: 'printf' was not declared in this scope
else printf("%d\n",DP(n));
^~~~~~
brunhilda.cpp:49:8: note: suggested alternative: 'inf'
else printf("%d\n",DP(n));
^~~~~~
inf