0_0_16463521_18379.cpp: In function 'void init()':
0_0_16463521_18379.cpp:17:32: error: 'memset' was not declared in this scope
memset(head,-1,sizeof(head));
^
0_0_16463521_18379.cpp:20:26: error: 'fa' was not declared in this scope
for(int i=1;i<=n;i++)fa[i] = i;
^
0_0_16463521_18379.cpp: In function 'void init_rmq()':
0_0_16463521_18379.cpp:55:30: error: 'log' was not declared in this scope
int t = (int)(log(num*1.0)/log(2.0));
^
0_0_16463521_18379.cpp: In function 'int rmq(int, int)':
0_0_16463521_18379.cpp:66:27: error: 'swap' was not declared in this scope
if(R[u]>=R[v])swap(u,v);
^
0_0_16463521_18379.cpp:68:34: error: 'log' was not declared in this scope
int k = (int)(log((t-s+1)*1.0)/log(2.0));
^
0_0_16463521_18379.cpp: In function 'int main()':
0_0_16463521_18379.cpp:84:29: error: 'scanf' was not declared in this scope
while(scanf("%d%d",&n,&m) != -1){
^
0_0_16463521_18379.cpp:92:33: error: 'memset' was not declared in this scope
memset(dp1,0,sizeof(dp1));
^
0_0_16463521_18379.cpp:110:26: error: 'printf' was not declared in this scope
printf("%d\n",ans);
^
|