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_29470066_9148.cpp:2:25: error: 'acos' was not declared in this scope
 const double pi= acos(-1);
                         ^
0_0_29470066_9148.cpp: In function 'void Get_mat(double, double, double, double)':
0_0_29470066_9148.cpp:9:19: error: 'cos' was not declared in this scope
     double c=cos(a);
                   ^
0_0_29470066_9148.cpp:10:19: error: 'sin' was not declared in this scope
     double s=sin(a);
                   ^
0_0_29470066_9148.cpp: In function 'int main()':
0_0_29470066_9148.cpp:21:54: error: 'scanf' was not declared in this scope
     while(scanf("%lf%lf%lf", &px[0], &px[1], &px[2]  ) != EOF){
                                                      ^
0_0_29470066_9148.cpp:21:59: error: 'EOF' was not declared in this scope
     while(scanf("%lf%lf%lf", &px[0], &px[1], &px[2]  ) != EOF){
                                                           ^
0_0_29470066_9148.cpp:22:31: error: 'memset' was not declared in this scope
         memset(py,0,sizeof(py));
                               ^
0_0_29470066_9148.cpp:24:46: error: 'sqrt' was not declared in this scope
         double len = sqrt(x * x + y * y +z *z) ;
                                              ^
0_0_29470066_9148.cpp:31:55: error: 'printf' was not declared in this scope
         printf("%.3lf %.3lf %.3lf\n",py[0],py[1],py[2]);
                                                       ^


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-06-02 08:00:43, Gzip enabled