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_39606053_7981.cpp:33:5: error: 'int16_t' does not name a type
   33 |     int16_t x, y;
      |     ^~~~~~~
0_0_39606053_7981.cpp:7:1: note: 'int16_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
    6 | #include <cstring>
  +++ |+#include <cstdint>
    7 | using namespace std;
0_0_39606053_7981.cpp: In function 'Point decodeHash(int)':
0_0_39606053_7981.cpp:44:25: error: 'int16_t' does not name a type
   44 |     return {static_cast<int16_t>(x), static_cast<int16_t>(y)};
      |                         ^~~~~~~
0_0_39606053_7981.cpp:44:25: note: 'int16_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
0_0_39606053_7981.cpp:44:50: error: 'int16_t' does not name a type
   44 |     return {static_cast<int16_t>(x), static_cast<int16_t>(y)};
      |                                                  ^~~~~~~
0_0_39606053_7981.cpp:44:50: note: 'int16_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
0_0_39606053_7981.cpp:44:61: error: could not convert '{<expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'Point'
   44 |     return {static_cast<int16_t>(x), static_cast<int16_t>(y)};
      |                                                             ^
      |                                                             |
      |                                                             <brace-enclosed initializer list>
0_0_39606053_7981.cpp: In function 'bool compareHorizontal(int, int)':
0_0_39606053_7981.cpp:66:16: error: 'struct Point' has no member named 'x'
   66 |     if (pointA.x != pointB.x) {
      |                ^
0_0_39606053_7981.cpp:66:28: error: 'struct Point' has no member named 'x'
   66 |     if (pointA.x != pointB.x) {
      |                            ^
0_0_39606053_7981.cpp:67:23: error: 'struct Point' has no member named 'x'
   67 |         return pointA.x < pointB.x;
      |                       ^
0_0_39606053_7981.cpp:67:34: error: 'struct Point' has no member named 'x'
   67 |         return pointA.x < pointB.x;
      |                                  ^
0_0_39606053_7981.cpp:69:19: error: 'struct Point' has no member named 'y'
   69 |     return pointA.y < pointB.y;
      |                   ^
0_0_39606053_7981.cpp:69:30: error: 'struct Point' has no member named 'y'
   69 |     return pointA.y < pointB.y;
      |                              ^
0_0_39606053_7981.cpp: In function 'bool compareVertical(int, int)':
0_0_39606053_7981.cpp:78:16: error: 'struct Point' has no member named 'y'
   78 |     if (pointA.y != pointB.y) {
      |                ^
0_0_39606053_7981.cpp:78:28: error: 'struct Point' has no member named 'y'
   78 |     if (pointA.y != pointB.y) {
      |                            ^
0_0_39606053_7981.cpp:79:23: error: 'struct Point' has no member named 'y'
   79 |         return pointA.y < pointB.y;
      |                       ^
0_0_39606053_7981.cpp:79:34: error: 'struct Point' has no member named 'y'
   79 |         return pointA.y < pointB.y;
      |                                  ^
0_0_39606053_7981.cpp:81:19: error: 'struct Point' has no member named 'x'
   81 |     return pointA.x < pointB.x;
      |                   ^
0_0_39606053_7981.cpp:81:30: error: 'struct Point' has no member named 'x'
   81 |     return pointA.x < pointB.x;
      |                              ^


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-12-25 03:09:00, Gzip enabled