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_35399114_15312.cpp:23:24: error: two or more data types in declaration of 'type name'
 void print(pair<double double> p) {
                        ^
0_0_35399114_15312.cpp:23:30: error: wrong number of template arguments (1, should be 2)
 void print(pair<double double> p) {
                              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_35399114_15312.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:96:12: error: provided for 'template<class _T1, class _T2> struct std::pair'
     struct pair
            ^
0_0_35399114_15312.cpp: In function 'void print(int)':
0_0_35399114_15312.cpp:24:29: error: request for member 'first' in 'p', which is of non-class type 'int'
  printf("%.10lf %.10lf\n",p.first,p.second);
                             ^
0_0_35399114_15312.cpp:24:37: error: request for member 'second' in 'p', which is of non-class type 'int'
  printf("%.10lf %.10lf\n",p.first,p.second);
                                     ^
0_0_35399114_15312.cpp: In function 'int main()':
0_0_35399114_15312.cpp:36:15: error: 'AD' was not declared in this scope
   double Cx = AD;
               ^
0_0_35399114_15312.cpp:41:20: error: 'By' was not declared in this scope
   double Cy = cala(By,BC,du);
                    ^
0_0_35399114_15312.cpp:50:10: error: cannot convert 'std::pair<double, double>' to 'int' for argument '1' to 'void print(int)'
   print(A);
          ^
0_0_35399114_15312.cpp:51:10: error: cannot convert 'std::pair<double, double>' to 'int' for argument '1' to 'void print(int)'
   print(B);
          ^
0_0_35399114_15312.cpp:52:10: error: cannot convert 'std::pair<double, double>' to 'int' for argument '1' to 'void print(int)'
   print(C);
          ^
0_0_35399114_15312.cpp:53:10: error: cannot convert 'std::pair<double, double>' to 'int' for argument '1' to 'void print(int)'
   print(D);
          ^
0_0_35399114_15312.cpp:54:10: error: cannot convert 'std::pair<double, double>' to 'int' for argument '1' to 'void print(int)'
   print(E);
          ^
0_0_35399114_15312.cpp:55:10: error: cannot convert 'std::pair<double, double>' to 'int' for argument '1' to 'void print(int)'
   print(F);
          ^


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-05-20 01:47:26, Gzip enabled