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_15886122_28583.cpp:18:17: error: expected ')' before 'a'
 int cross(round a,round b)
                 ^
0_0_15886122_28583.cpp:18:25: error: expected ')' before 'b'
 int cross(round a,round b)
                         ^
0_0_15886122_28583.cpp:18:26: error: expression list treated as compound expression in initializer [-fpermissive]
 int cross(round a,round b)
                          ^
0_0_15886122_28583.cpp:18:26: error: invalid conversion from 'double (*)(double)' to 'int' [-fpermissive]
0_0_15886122_28583.cpp:19:1: error: expected ',' or ';' before '{' token
 {
 ^
0_0_15886122_28583.cpp:28:19: error: expected ')' before 'a'
 bool check1(round a)
                   ^
0_0_15886122_28583.cpp:29:1: error: expected ',' or ';' before '{' token
 {
 ^
0_0_15886122_28583.cpp:32:19: error: expected ')' before 'a'
 bool check2(round a)
                   ^
0_0_15886122_28583.cpp:33:1: error: expected ',' or ';' before '{' token
 {
 ^
0_0_15886122_28583.cpp: In function 'int main()':
0_0_15886122_28583.cpp:46:34: error: 'check1' cannot be used as a function
         bool flag1=check1(wall[i]),flag2=check2(wall[i]);
                                  ^
0_0_15886122_28583.cpp:47:20: error: 'flag2' was not declared in this scope
         if(!flag1&&flag2)
                    ^
0_0_15886122_28583.cpp:62:55: error: 'cross' cannot be used as a function
             if(mark[i]==mark[j]&&cross(wall[i],wall[j])==2)
                                                       ^
0_0_15886122_28583.cpp:72:55: error: 'cross' cannot be used as a function
             if(mark[i]!=mark[j]&&cross(wall[i],wall[j])==1)
                                                       ^


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-06-30 14:42:19, Gzip enabled