F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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);
                          ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-17 07:18:39, Gzip enabled