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_27221715_23128.cpp:9:16: error: expected ')' before 'a'
  int cmp(floor a,floor b)
                ^
0_0_27221715_23128.cpp:9:24: error: expected ')' before 'b'
  int cmp(floor a,floor b)
                        ^
0_0_27221715_23128.cpp:9:25: error: expression list treated as compound expression in initializer [-fpermissive]
  int cmp(floor a,floor b)
                         ^
0_0_27221715_23128.cpp:9:25: error: left operand of comma operator cannot resolve address of overloaded function
0_0_27221715_23128.cpp:9:25: error: no context to resolve type of 'std::floor'
0_0_27221715_23128.cpp:10:2: error: expected ',' or ';' before '{' token
  {
  ^
0_0_27221715_23128.cpp: In function 'int main(int, char**)':
0_0_27221715_23128.cpp:22:9: error: expected ';' before 'f'
   floor f[204];
         ^
0_0_27221715_23128.cpp:22:15: error: statement cannot resolve address of overloaded function
   floor f[204];
               ^
0_0_27221715_23128.cpp:28:9: error: 'f' was not declared in this scope
    cin>>f[i].from>>f[i].to;
         ^
0_0_27221715_23128.cpp:30:8: error: 'f' was not declared in this scope
   sort(f,f+n,cmp);
        ^


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-06 03:58:45, Gzip enabled