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_38967890_27568.cpp: In function 'void Dijkstra()':
0_0_38967890_27568.cpp:8:11: error: request for member 'second' in 'pos.std::pair<long long int, long long int>::second', which is of non-class type 'long long int'
    8 | #define y second
      |           ^~~~~~
0_0_38967890_27568.cpp:43:34: note: in expansion of macro 'y'
   43 |             if(dis[to]>dis[pos.y.y]+a){
      |                                  ^
0_0_38967890_27568.cpp:8:11: error: request for member 'second' in 'pos.std::pair<long long int, long long int>::second', which is of non-class type 'long long int'
    8 | #define y second
      |           ^~~~~~
0_0_38967890_27568.cpp:44:35: note: in expansion of macro 'y'
   44 |                 dis[to]=dis[pos.y.y]+a;
      |                                   ^


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-25 09:26:59, Gzip enabled