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_39375122_15407.cpp:1:35: error: 'vector3d' was not declared in this scope
    1 | static bool getRaySphereIntersect(vector3d rayOrigin, vector3d rayDir,
      |                                   ^~~~~~~~
0_0_39375122_15407.cpp:1:55: error: 'vector3d' was not declared in this scope
    1 | static bool getRaySphereIntersect(vector3d rayOrigin, vector3d rayDir,
      |                                                       ^~~~~~~~
0_0_39375122_15407.cpp:2:60: error: 'vector3d' was not declared in this scope
    2 |                                                            vector3d sphereCenter, float sphereRadius,
      |                                                            ^~~~~~~~
0_0_39375122_15407.cpp:2:83: error: expected primary-expression before 'float'
    2 |                                                            vector3d sphereCenter, float sphereRadius,
      |                                                                                   ^~~~~
0_0_39375122_15407.cpp:3:65: error: 'vector' is not a member of 'std'
    3 |                                                            std::vector<vector3d> &intersectPoint);
      |                                                                 ^~~~~~
0_0_39375122_15407.cpp:1:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
  +++ |+#include <vector>
    1 | static bool getRaySphereIntersect(vector3d rayOrigin, vector3d rayDir,
0_0_39375122_15407.cpp:3:72: error: 'vector3d' was not declared in this scope
    3 |                                                            std::vector<vector3d> &intersectPoint);
      |                                                                        ^~~~~~~~
0_0_39375122_15407.cpp:3:83: error: 'intersectPoint' was not declared in this scope
    3 |                                                            std::vector<vector3d> &intersectPoint);
      |                                                                                   ^~~~~~~~~~~~~~
0_0_39375122_15407.cpp:3:97: error: expression list treated as compound expression in initializer [-fpermissive]
    3 |                                                            std::vector<vector3d> &intersectPoint);
      |                                                                                                 ^
0_0_39375122_15407.cpp:4:9: error: expected unqualified-id before '{' token
    4 |         {
      |         ^


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-29 03:24:18, Gzip enabled