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_24039580_21411.cpp: In function 'double tr_area(point, point, point)':
0_0_24039580_21411.cpp:28:17: error: expected identifier before '(' token
     return 0.5*[(a.x*b.y-b.x*a.y)+(b.x*c.y-c.x*b.y)+(c.x*a.y-a.x*c.y)];
                 ^
0_0_24039580_21411.cpp: In lambda function:
0_0_24039580_21411.cpp:28:71: error: expected '{' before ';' token
     return 0.5*[(a.x*b.y-b.x*a.y)+(b.x*c.y-c.x*b.y)+(c.x*a.y-a.x*c.y)];
                                                                       ^
0_0_24039580_21411.cpp: In function 'double tr_area(point, point, point)':
0_0_24039580_21411.cpp:28:15: error: no match for 'operator*' (operand types are 'double' and 'tr_area(point, point, point)::<lambda()>')
     return 0.5*[(a.x*b.y-b.x*a.y)+(b.x*c.y-c.x*b.y)+(c.x*a.y-a.x*c.y)];
               ^
0_0_24039580_21411.cpp: In function 'int main()':
0_0_24039580_21411.cpp:41:18: error: 'start' was not declared in this scope
    area+=tr_area(start,last,cur);
                  ^


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-05 02:34:00, Gzip enabled