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_13534765_6602.cpp: In function 'int compare(const void*, const void*)':
0_0_13534765_6602.cpp:46:23: error: invalid conversion from 'const void*' to 'const ti*' [-fpermissive]
  const struct ti *p = a;
                       ^
0_0_13534765_6602.cpp:47:23: error: invalid conversion from 'const void*' to 'const ti*' [-fpermissive]
  const struct ti *q = b;
                       ^
0_0_13534765_6602.cpp:49:12: error: 'const struct ti' has no member named 'e'
  return p->e - q->e;
            ^
0_0_13534765_6602.cpp:49:19: error: 'const struct ti' has no member named 'e'
  return p->e - q->e;
                   ^


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-07-07 17:59:51, Gzip enabled