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_38248558_26220.cpp: In function 'void find(int, int, int)':
0_0_38248558_26220.cpp:49:6: error: void value not ignored as it ought to be
    id=find(l,mid-1,(i+1)%3);
      ^
0_0_38248558_26220.cpp:56:9: error: void value not ignored as it ought to be
      id2=find(mid+1,r,(i+1)%3);
         ^
0_0_38248558_26220.cpp:57:18: error: return-statement with a value, in function returning 'void' [-fpermissive]
     }else return id;
                  ^
0_0_38248558_26220.cpp:60:6: error: void value not ignored as it ought to be
    id=find(mid+1,r,(i+1)%3);
      ^
0_0_38248558_26220.cpp:67:9: error: void value not ignored as it ought to be
      id2=find(l,mid-1,(i+1)%3);
         ^
0_0_38248558_26220.cpp:68:18: error: return-statement with a value, in function returning 'void' [-fpermissive]
     }else return id;
                  ^
0_0_38248558_26220.cpp:75:10: error: return-statement with a value, in function returning 'void' [-fpermissive]
   return id;
          ^
0_0_38248558_26220.cpp:77:47: error: return-statement with a value, in function returning 'void' [-fpermissive]
   if(dis1==dis2&&ps[id].id<ps[id2].id) return id;
                                               ^
0_0_38248558_26220.cpp:78:10: error: return-statement with a value, in function returning 'void' [-fpermissive]
   return id2;
          ^
0_0_38248558_26220.cpp: In function 'int main()':
0_0_38248558_26220.cpp:100:23: error: void value not ignored as it ought to be
    int id=find(0,n-1,0);
                       ^


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-03 10:03:49, Gzip enabled