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_16772714_517.cpp: In function 'int intmain()':
0_0_16772714_517.cpp:10:364: error: 'elseif' was not declared in this scope
 else if(min3+min2==2*min1&&fabs(min3-min1)<=480) p1++; min1-=12*60; min2+=12*60; if(min1+min2==2*min3&&fabs(min1-min3)<=480) p3++; else if(min1+min3==2*min2&&fabs(min1-min2)<=480) p2++; else if(min3+min2==2*min1&&fabs(min3-min1)<=480) p1++; min2-=12*60; min3+=12*60; if(min1+min2==2*min3&&fabs(min1-min3)<=480) p3++; elseif(min1+min3==2*min2&&fabs(min1-min2)<=480) p2++; else if(min3+min2==2*min1&&fabs(min3-min1)<=480) p1++; min1+=12*60; min2+=12*60; min3-=12*60; if(min1+min2==2*min3&&fabs(min1-min3)<=480) p3++; else if(min1+min3==2*min2&&fabs(min1-min2)<=480) p2++; else if(min3+min2==2*min1&&fabs(min3-min1)<=480) p1++; min2-=12*60; min3+=12*60; if(min1+min2==2*min3&&fabs(min1-min3)<=480) p3++; else if(min1+min3==2*min2&&fabs(min1-min2)<=480) p2++; else if(min3+min2==2*min1&&fabs(min3-min1)<=480) p1++; min1-=12*60; min2+=12*60; if(min1+min2==2*min3&&fabs(min1-min3)<=480) p3++;
                                                                                                                                                                                                                                                                                                                                                                            ^
0_0_16772714_517.cpp:10:372: error: 'else' without a previous 'if'
 else if(min3+min2==2*min1&&fabs(min3-min1)<=480) p1++; min1-=12*60; min2+=12*60; if(min1+min2==2*min3&&fabs(min1-min3)<=480) p3++; else if(min1+min3==2*min2&&fabs(min1-min2)<=480) p2++; else if(min3+min2==2*min1&&fabs(min3-min1)<=480) p1++; min2-=12*60; min3+=12*60; if(min1+min2==2*min3&&fabs(min1-min3)<=480) p3++; elseif(min1+min3==2*min2&&fabs(min1-min2)<=480) p2++; else if(min3+min2==2*min1&&fabs(min3-min1)<=480) p1++; min1+=12*60; min2+=12*60; min3-=12*60; if(min1+min2==2*min3&&fabs(min1-min3)<=480) p3++; else if(min1+min3==2*min2&&fabs(min1-min2)<=480) p2++; else if(min3+min2==2*min1&&fabs(min3-min1)<=480) p1++; min2-=12*60; min3+=12*60; if(min1+min2==2*min3&&fabs(min1-min3)<=480) p3++; else if(min1+min3==2*min2&&fabs(min1-min2)<=480) p2++; else if(min3+min2==2*min1&&fabs(min3-min1)<=480) p1++; min1-=12*60; min2+=12*60; if(min1+min2==2*min3&&fabs(min1-min3)<=480) p3++;
                                                                                                                                                                                                                                                                                                                                                                                    ^
0_0_16772714_517.cpp:12:377: error: 'return0' was not declared in this scope
  else if(min1+min3==2*min2&&fabs(min1-min2)<=480) p2++; else if(min3+min2==2*min1&&fabs(min3-min1)<=480) p1++; if(p1>00||p1>00||p2>00) printf("Look at the sun\n"); else if(p1>0) { printf("The correct time is %d:%c%c\n",h1,m11,m12); } else if(p2>0) { printf("The correct time is %d:%c%c\n",h2,m21,m22); } else if(p3>0) { printf("The correct time is %d:%c%c\n",h3,m31,m32); } } return0; }
                                                                                                                                                                                                                                                                                                                                                                                         ^


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-02 14:12:10, Gzip enabled