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_13736724_9116.cpp: In function 'int count(int, int)':
0_0_13736724_9116.cpp:41:5: error: reference to 'vector' is ambiguous
     vector v13 = P3 - P1;
     ^
0_0_13736724_9116.cpp:33:15: note: candidates are: typedef struct point vector
 typedef point vector;
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_13736724_9116.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:214:11: note:                 template<class _Tp, class _Alloc> class std::vector
     class vector : protected _Vector_base<_Tp, _Alloc>
           ^
0_0_13736724_9116.cpp:42:5: error: reference to 'vector' is ambiguous
     vector v12 = P2 - P1;
     ^
0_0_13736724_9116.cpp:33:15: note: candidates are: typedef struct point vector
 typedef point vector;
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_13736724_9116.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:214:11: note:                 template<class _Tp, class _Alloc> class std::vector
     class vector : protected _Vector_base<_Tp, _Alloc>
           ^
0_0_13736724_9116.cpp:43:5: error: reference to 'vector' is ambiguous
     vector v21 = P1 - P2;
     ^
0_0_13736724_9116.cpp:33:15: note: candidates are: typedef struct point vector
 typedef point vector;
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_13736724_9116.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:214:11: note:                 template<class _Tp, class _Alloc> class std::vector
     class vector : protected _Vector_base<_Tp, _Alloc>
           ^
0_0_13736724_9116.cpp:44:5: error: reference to 'vector' is ambiguous
     vector v23 = P3 - P2;
     ^
0_0_13736724_9116.cpp:33:15: note: candidates are: typedef struct point vector
 typedef point vector;
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_13736724_9116.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:214:11: note:                 template<class _Tp, class _Alloc> class std::vector
     class vector : protected _Vector_base<_Tp, _Alloc>
           ^
0_0_13736724_9116.cpp:47:9: error: reference to 'vector' is ambiguous
         vector q1 = Q[i] - P1;
         ^
0_0_13736724_9116.cpp:33:15: note: candidates are: typedef struct point vector
 typedef point vector;
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_13736724_9116.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:214:11: note:                 template<class _Tp, class _Alloc> class std::vector
     class vector : protected _Vector_base<_Tp, _Alloc>
           ^
0_0_13736724_9116.cpp:48:9: error: reference to 'vector' is ambiguous
         vector q2 = Q[i] - P2;
         ^
0_0_13736724_9116.cpp:33:15: note: candidates are: typedef struct point vector
 typedef point vector;
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_13736724_9116.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:214:11: note:                 template<class _Tp, class _Alloc> class std::vector
     class vector : protected _Vector_base<_Tp, _Alloc>
           ^
0_0_13736724_9116.cpp:49:13: error: 'v13' was not declared in this scope
         if((v13 | q1) < -eps && (q1 | v12) < -eps)
             ^
0_0_13736724_9116.cpp:49:19: error: 'q1' was not declared in this scope
         if((v13 | q1) < -eps && (q1 | v12) < -eps)
                   ^
0_0_13736724_9116.cpp:49:39: error: 'v12' was not declared in this scope
         if((v13 | q1) < -eps && (q1 | v12) < -eps)
                                       ^
0_0_13736724_9116.cpp:50:17: error: 'v21' was not declared in this scope
             if((v21 | q2) < -eps && (q2 | v23) < -eps) ++rtn;
                 ^
0_0_13736724_9116.cpp:50:23: error: 'q2' was not declared in this scope
             if((v21 | q2) < -eps && (q2 | v23) < -eps) ++rtn;
                       ^
0_0_13736724_9116.cpp:50:43: error: 'v23' was not declared in this scope
             if((v21 | q2) < -eps && (q2 | v23) < -eps) ++rtn;
                                           ^
0_0_13736724_9116.cpp: In function 'int main()':
0_0_13736724_9116.cpp:80:21: error: reference to 'vector' is ambiguous
                     vector v = P[i] - P[k];
                     ^
0_0_13736724_9116.cpp:33:15: note: candidates are: typedef struct point vector
 typedef point vector;
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_13736724_9116.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:214:11: note:                 template<class _Tp, class _Alloc> class std::vector
     class vector : protected _Vector_base<_Tp, _Alloc>
           ^
0_0_13736724_9116.cpp:81:21: error: reference to 'vector' is ambiguous
                     vector u = P[j] - P[k];
                     ^
0_0_13736724_9116.cpp:33:15: note: candidates are: typedef struct point vector
 typedef point vector;
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_13736724_9116.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:214:11: note:                 template<class _Tp, class _Alloc> class std::vector
     class vector : protected _Vector_base<_Tp, _Alloc>
           ^
0_0_13736724_9116.cpp:83:25: error: 'v' was not declared in this scope
                     if((v | u) > -eps){
                         ^
0_0_13736724_9116.cpp:83:29: error: 'u' was not declared in this scope
                     if((v | u) > -eps){
                             ^


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-09-28 14:13:52, Gzip enabled