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_37222513_31655\Main.java:1: 错误: 非法字符: '#'
#include "stdafx.h" 
^
0_0_37222513_31655\Main.java:1: 错误: 需要class, interface或enum
#include "stdafx.h" 
         ^
0_0_37222513_31655\Main.java:2: 错误: 非法字符: '#'
#include<iostream>
^
0_0_37222513_31655\Main.java:3: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_37222513_31655\Main.java:4: 错误: 非法字符: '#'
#include<cmath>
^
0_0_37222513_31655\Main.java:7: 错误: 需要class, interface或enum
static const int MAXNUM=100000;
       ^
0_0_37222513_31655\Main.java:9: 错误: 需要class, interface或enum
struct Point
^
0_0_37222513_31655\Main.java:12: 错误: 需要class, interface或enum
}arrP[MAXNUM],arrX[MAXNUM],arrY[MAXNUM];
^
0_0_37222513_31655\Main.java:14: 错误: 需要class, interface或enum
bool CompX(Point a,Point b)
^
0_0_37222513_31655\Main.java:18: 错误: 需要class, interface或enum
 return a.x<b.x;
 ^
0_0_37222513_31655\Main.java:19: 错误: 需要class, interface或enum
}
^
0_0_37222513_31655\Main.java:25: 错误: 需要class, interface或enum
 return a.y<b.y;
 ^
0_0_37222513_31655\Main.java:26: 错误: 需要class, interface或enum
}
^
0_0_37222513_31655\Main.java:31: 错误: 需要class, interface或enum
}
^
0_0_37222513_31655\Main.java:36: 错误: 需要class, interface或enum
}
^
0_0_37222513_31655\Main.java:42: 错误: 需要class, interface或enum
 else if(l+1==r)  //only two points
 ^
0_0_37222513_31655\Main.java:44: 错误: 需要class, interface或enum
 else if(l+2==r)  //only three points
 ^
0_0_37222513_31655\Main.java:47: 错误: 需要class, interface或enum
  double tmp2=GetDistance(arrP[l],arrP[r]);
  ^
0_0_37222513_31655\Main.java:48: 错误: 需要class, interface或enum
  double tmp3=GetDistance(arrP[l+1],arrP[r]);
  ^
0_0_37222513_31655\Main.java:49: 错误: 需要class, interface或enum
  return MinDistance(MinDistance(tmp1,tmp2),tmp3);
  ^
0_0_37222513_31655\Main.java:50: 错误: 需要class, interface或enum
 }
 ^
0_0_37222513_31655\Main.java:53: 错误: 需要class, interface或enum
 double minDistance=MinDistance(GetMinDistance(l,middle),GetMinDistance(middle+1,r));
 ^
0_0_37222513_31655\Main.java:54: 错误: 需要class, interface或enum
 for(int i=l;i<=r;i++)
 ^
0_0_37222513_31655\Main.java:54: 错误: 需要class, interface或enum
 for(int i=l;i<=r;i++)
             ^
0_0_37222513_31655\Main.java:54: 错误: 需要class, interface或enum
 for(int i=l;i<=r;i++)
                  ^
0_0_37222513_31655\Main.java:58: 错误: 需要class, interface或enum
 }
 ^
0_0_37222513_31655\Main.java:60: 错误: 需要class, interface或enum
 middle=(j+1)/2;
 ^
0_0_37222513_31655\Main.java:61: 错误: 需要class, interface或enum
 for(int i=0;i<j;i++)
 ^
0_0_37222513_31655\Main.java:61: 错误: 需要class, interface或enum
 for(int i=0;i<j;i++)
             ^
0_0_37222513_31655\Main.java:61: 错误: 需要class, interface或enum
 for(int i=0;i<j;i++)
                 ^
0_0_37222513_31655\Main.java:65: 错误: 需要class, interface或enum
 }
 ^
0_0_37222513_31655\Main.java:66: 错误: 需要class, interface或enum
 for(int i=0;i<k;i++)
             ^
0_0_37222513_31655\Main.java:66: 错误: 需要class, interface或enum
 for(int i=0;i<k;i++)
                 ^
0_0_37222513_31655\Main.java:67: 错误: 需要class, interface或enum
  for(int j=i+1;j<k;j++)
                ^
0_0_37222513_31655\Main.java:67: 错误: 需要class, interface或enum
  for(int j=i+1;j<k;j++)
                    ^
0_0_37222513_31655\Main.java:70: 错误: 需要class, interface或enum
   if(tmpDistance<minDistance)
   ^
0_0_37222513_31655\Main.java:72: 错误: 需要class, interface或enum
  }
  ^
0_0_37222513_31655\Main.java:74: 错误: 需要class, interface或enum
}
^
0_0_37222513_31655\Main.java:79: 错误: 需要class, interface或enum
 while(cin>>n && n!=0)
 ^
0_0_37222513_31655\Main.java:82: 错误: 需要class, interface或enum
  double minDistance;
  ^
0_0_37222513_31655\Main.java:83: 错误: 需要class, interface或enum
  for(int i=0;i<n;i++)
  ^
0_0_37222513_31655\Main.java:83: 错误: 需要class, interface或enum
  for(int i=0;i<n;i++)
              ^
0_0_37222513_31655\Main.java:83: 错误: 需要class, interface或enum
  for(int i=0;i<n;i++)
                  ^
0_0_37222513_31655\Main.java:86: 错误: 需要class, interface或enum
  }
  ^
0_0_37222513_31655\Main.java:88: 错误: 需要class, interface或enum
  minDistance=GetMinDistance(0,n-1);
  ^
0_0_37222513_31655\Main.java:89: 错误: 需要class, interface或enum
  cout.precision(2);
  ^
0_0_37222513_31655\Main.java:90: 错误: 需要class, interface或enum
  cout<<fixed<<minDistance/2<<endl;
  ^
0_0_37222513_31655\Main.java:91: 错误: 需要class, interface或enum
 }
 ^
0_0_37222513_31655\Main.java:93: 错误: 需要class, interface或enum
}#include "stdafx.h" 
^
0_0_37222513_31655\Main.java:93: 错误: 非法字符: '#'
}#include "stdafx.h" 
 ^
0_0_37222513_31655\Main.java:94: 错误: 非法字符: '#'
#include<iostream>
^
0_0_37222513_31655\Main.java:95: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_37222513_31655\Main.java:96: 错误: 非法字符: '#'
#include<cmath>
^
0_0_37222513_31655\Main.java:99: 错误: 需要class, interface或enum
static const int MAXNUM=100000;
       ^
0_0_37222513_31655\Main.java:101: 错误: 需要class, interface或enum
struct Point
^
0_0_37222513_31655\Main.java:104: 错误: 需要class, interface或enum
}arrP[MAXNUM],arrX[MAXNUM],arrY[MAXNUM];
^
0_0_37222513_31655\Main.java:106: 错误: 需要class, interface或enum
bool CompX(Point a,Point b)
^
0_0_37222513_31655\Main.java:110: 错误: 需要class, interface或enum
 return a.x<b.x;
 ^
0_0_37222513_31655\Main.java:111: 错误: 需要class, interface或enum
}
^
0_0_37222513_31655\Main.java:117: 错误: 需要class, interface或enum
 return a.y<b.y;
 ^
0_0_37222513_31655\Main.java:118: 错误: 需要class, interface或enum
}
^
0_0_37222513_31655\Main.java:123: 错误: 需要class, interface或enum
}
^
0_0_37222513_31655\Main.java:128: 错误: 需要class, interface或enum
}
^
0_0_37222513_31655\Main.java:134: 错误: 需要class, interface或enum
 else if(l+1==r)  //only two points
 ^
0_0_37222513_31655\Main.java:136: 错误: 需要class, interface或enum
 else if(l+2==r)  //only three points
 ^
0_0_37222513_31655\Main.java:139: 错误: 需要class, interface或enum
  double tmp2=GetDistance(arrP[l],arrP[r]);
  ^
0_0_37222513_31655\Main.java:140: 错误: 需要class, interface或enum
  double tmp3=GetDistance(arrP[l+1],arrP[r]);
  ^
0_0_37222513_31655\Main.java:141: 错误: 需要class, interface或enum
  return MinDistance(MinDistance(tmp1,tmp2),tmp3);
  ^
0_0_37222513_31655\Main.java:142: 错误: 需要class, interface或enum
 }
 ^
0_0_37222513_31655\Main.java:145: 错误: 需要class, interface或enum
 double minDistance=MinDistance(GetMinDistance(l,middle),GetMinDistance(middle+1,r));
 ^
0_0_37222513_31655\Main.java:146: 错误: 需要class, interface或enum
 for(int i=l;i<=r;i++)
 ^
0_0_37222513_31655\Main.java:146: 错误: 需要class, interface或enum
 for(int i=l;i<=r;i++)
             ^
0_0_37222513_31655\Main.java:146: 错误: 需要class, interface或enum
 for(int i=l;i<=r;i++)
                  ^
0_0_37222513_31655\Main.java:150: 错误: 需要class, interface或enum
 }
 ^
0_0_37222513_31655\Main.java:152: 错误: 需要class, interface或enum
 middle=(j+1)/2;
 ^
0_0_37222513_31655\Main.java:153: 错误: 需要class, interface或enum
 for(int i=0;i<j;i++)
 ^
0_0_37222513_31655\Main.java:153: 错误: 需要class, interface或enum
 for(int i=0;i<j;i++)
             ^
0_0_37222513_31655\Main.java:153: 错误: 需要class, interface或enum
 for(int i=0;i<j;i++)
                 ^
0_0_37222513_31655\Main.java:157: 错误: 需要class, interface或enum
 }
 ^
0_0_37222513_31655\Main.java:158: 错误: 需要class, interface或enum
 for(int i=0;i<k;i++)
             ^
0_0_37222513_31655\Main.java:158: 错误: 需要class, interface或enum
 for(int i=0;i<k;i++)
                 ^
0_0_37222513_31655\Main.java:159: 错误: 需要class, interface或enum
  for(int j=i+1;j<k;j++)
                ^
0_0_37222513_31655\Main.java:159: 错误: 需要class, interface或enum
  for(int j=i+1;j<k;j++)
                    ^
0_0_37222513_31655\Main.java:162: 错误: 需要class, interface或enum
   if(tmpDistance<minDistance)
   ^
0_0_37222513_31655\Main.java:164: 错误: 需要class, interface或enum
  }
  ^
0_0_37222513_31655\Main.java:166: 错误: 需要class, interface或enum
}
^
0_0_37222513_31655\Main.java:171: 错误: 需要class, interface或enum
 while(cin>>n && n!=0)
 ^
0_0_37222513_31655\Main.java:174: 错误: 需要class, interface或enum
  double minDistance;
  ^
0_0_37222513_31655\Main.java:175: 错误: 需要class, interface或enum
  for(int i=0;i<n;i++)
  ^
0_0_37222513_31655\Main.java:175: 错误: 需要class, interface或enum
  for(int i=0;i<n;i++)
              ^
0_0_37222513_31655\Main.java:175: 错误: 需要class, interface或enum
  for(int i=0;i<n;i++)
                  ^
0_0_37222513_31655\Main.java:178: 错误: 需要class, interface或enum
  }
  ^
0_0_37222513_31655\Main.java:180: 错误: 需要class, interface或enum
  minDistance=GetMinDistance(0,n-1);
  ^
0_0_37222513_31655\Main.java:181: 错误: 需要class, interface或enum
  cout.precision(2);
  ^
0_0_37222513_31655\Main.java:182: 错误: 需要class, interface或enum
  cout<<fixed<<minDistance/2<<endl;
  ^
0_0_37222513_31655\Main.java:183: 错误: 需要class, interface或enum
 }
 ^
0_0_37222513_31655\Main.java:185: 错误: 需要class, interface或enum
}
^
97 个错误


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 12:42:13, Gzip enabled