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_29470069_7903.cpp: In function 'void Get_mat(double, double, double, double)':
0_0_29470069_7903.cpp:4:19: error: 'cos' was not declared in this scope
     double c=cos(a);
                   ^
0_0_29470069_7903.cpp:5:19: error: 'sin' was not declared in this scope
     double s=sin(a);
                   ^
0_0_29470069_7903.cpp: At global scope:
0_0_29470069_7903.cpp:12:25: error: 'acos' was not declared in this scope
 const double pi= acos(-1);
                         ^
0_0_29470069_7903.cpp:16:16: error: redefinition of 'double mat [3][3]'
 double mat[3][3];
                ^
0_0_29470069_7903.cpp:1:8: note: 'double mat [3][3]' previously declared here
 double mat[3][3];
        ^
0_0_29470069_7903.cpp: In function 'void Get_mat(double, double, double, double)':
0_0_29470069_7903.cpp:18:6: error: redefinition of 'void Get_mat(double, double, double, double)'
 void Get_mat(double x,double y,double z, double a){
      ^
0_0_29470069_7903.cpp:3:6: note: 'void Get_mat(double, double, double, double)' previously defined here
 void Get_mat(double x,double y,double z, double a){
      ^
0_0_29470069_7903.cpp:19:19: error: 'cos' was not declared in this scope
     double c=cos(a);
                   ^
0_0_29470069_7903.cpp:20:19: error: 'sin' was not declared in this scope
     double s=sin(a);
                   ^
0_0_29470069_7903.cpp: In function 'int main()':
0_0_29470069_7903.cpp:31:54: error: 'scanf' was not declared in this scope
     while(scanf("%lf%lf%lf", &px[0], &px[1], &px[2]  ) != EOF){
                                                      ^
0_0_29470069_7903.cpp:31:59: error: 'EOF' was not declared in this scope
     while(scanf("%lf%lf%lf", &px[0], &px[1], &px[2]  ) != EOF){
                                                           ^
0_0_29470069_7903.cpp:32:31: error: 'memset' was not declared in this scope
         memset(py,0,sizeof(py));
                               ^
0_0_29470069_7903.cpp:34:46: error: 'sqrt' was not declared in this scope
         double len = sqrt(x * x + y * y +z *z) ;
                                              ^
0_0_29470069_7903.cpp:41: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-11-26 05:14:25, Gzip enabled