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_29330828_4120.cpp:1:2: error: stray '#' in program
 v#include <bits/stdc++.h>
  ^
0_0_29330828_4120.cpp:1:1: error: 'v' does not name a type
 v#include <bits/stdc++.h>
 ^
0_0_29330828_4120.cpp: In function 'bool cal(double)':
0_0_29330828_4120.cpp:41:14: error: 'fabs' was not declared in this scope
     if(fabs(x)<eps) return 0;
              ^
0_0_29330828_4120.cpp: In function 'void judge()':
0_0_29330828_4120.cpp:48:26: error: 'memset' was not declared in this scope
  memset(vis,0,sizeof(vis));
                          ^
0_0_29330828_4120.cpp:51:5: error: 'priority_queue' was not declared in this scope
     priority_queue <node> q;
     ^
0_0_29330828_4120.cpp:51:25: error: expected primary-expression before '>' token
     priority_queue <node> q;
                         ^
0_0_29330828_4120.cpp:51:27: error: 'q' was not declared in this scope
     priority_queue <node> q;
                           ^
0_0_29330828_4120.cpp: In function 'int main()':
0_0_29330828_4120.cpp:83:18: error: 'scanf' was not declared in this scope
     scanf("%d",&T);
                  ^
0_0_29330828_4120.cpp:86:36: error: 'memset' was not declared in this scope
         memset(head,-1,sizeof(head));
                                    ^
0_0_29330828_4120.cpp:108:26: error: 'printf' was not declared in this scope
             printf("-1\n");
                          ^
0_0_29330828_4120.cpp:113:31: error: 'log2' was not declared in this scope
             ans=floor(log2(ans));
                               ^
0_0_29330828_4120.cpp:113:32: error: 'floor' was not declared in this scope
             ans=floor(log2(ans));
                                ^
0_0_29330828_4120.cpp:114:32: error: 'printf' was not declared in this scope
             printf("%lld\n",ans);
                                ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-29 18:32:49, Gzip enabled