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_9762574_11356\Main.java:1: 非法字符: \35
#include <iostream> #include <cstring> #include <cstdlib> #include <cstdio> #include <queue> #include <cmath> #include <algorithm> using namespace std; struct P { double x,y,z; }; double er; bool judgedel(P S,P T) { double a,b,c,Maxlen; a = (S.x-T.x)*(S.x-T.x) + (S.y-T.y)*(S.y-T.y) + (S.z-T.z)*(S.z-T.z); b = T.x*T.x + T.y*T.y + T.z+T.z; c = S.x*S.x + S.y*S.y + S.z*S.z; Maxlen = c - er; if(a <= Maxlen) return true; return false; } int main() { int i,j; int n,m,Count; bool mark[110]; P s[110],t[110]; er = 20000.0/acos(-1); er *= er; while(scanf("%d %d",&n,&m) && (n||m)) { for(i = 0;i < n; ++i) cin>>s[i].x>>s[i].y>>s[i].z; for(j = 0;j < m; ++j) cin>>t[j].x>>t[j].y>>t[j].z; memset(mark,false,sizeof(mark)); Count = 0; for(i = 0;i < n; ++i) { for(j = 0;j < m; ++j) { if(mark[j] == false && judgedel(s[i],t[j])) { mark[j] = true; Count++; } } } cout<<Count<<endl; } return 0; } 
^
0_0_9762574_11356\Main.java:1: 非法字符: \35
#include <iostream> #include <cstring> #include <cstdlib> #include <cstdio> #include <queue> #include <cmath> #include <algorithm> using namespace std; struct P { double x,y,z; }; double er; bool judgedel(P S,P T) { double a,b,c,Maxlen; a = (S.x-T.x)*(S.x-T.x) + (S.y-T.y)*(S.y-T.y) + (S.z-T.z)*(S.z-T.z); b = T.x*T.x + T.y*T.y + T.z+T.z; c = S.x*S.x + S.y*S.y + S.z*S.z; Maxlen = c - er; if(a <= Maxlen) return true; return false; } int main() { int i,j; int n,m,Count; bool mark[110]; P s[110],t[110]; er = 20000.0/acos(-1); er *= er; while(scanf("%d %d",&n,&m) && (n||m)) { for(i = 0;i < n; ++i) cin>>s[i].x>>s[i].y>>s[i].z; for(j = 0;j < m; ++j) cin>>t[j].x>>t[j].y>>t[j].z; memset(mark,false,sizeof(mark)); Count = 0; for(i = 0;i < n; ++i) { for(j = 0;j < m; ++j) { if(mark[j] == false && judgedel(s[i],t[j])) { mark[j] = true; Count++; } } } cout<<Count<<endl; } return 0; } 
                    ^
0_0_9762574_11356\Main.java:1: 非法字符: \35
#include <iostream> #include <cstring> #include <cstdlib> #include <cstdio> #include <queue> #include <cmath> #include <algorithm> using namespace std; struct P { double x,y,z; }; double er; bool judgedel(P S,P T) { double a,b,c,Maxlen; a = (S.x-T.x)*(S.x-T.x) + (S.y-T.y)*(S.y-T.y) + (S.z-T.z)*(S.z-T.z); b = T.x*T.x + T.y*T.y + T.z+T.z; c = S.x*S.x + S.y*S.y + S.z*S.z; Maxlen = c - er; if(a <= Maxlen) return true; return false; } int main() { int i,j; int n,m,Count; bool mark[110]; P s[110],t[110]; er = 20000.0/acos(-1); er *= er; while(scanf("%d %d",&n,&m) && (n||m)) { for(i = 0;i < n; ++i) cin>>s[i].x>>s[i].y>>s[i].z; for(j = 0;j < m; ++j) cin>>t[j].x>>t[j].y>>t[j].z; memset(mark,false,sizeof(mark)); Count = 0; for(i = 0;i < n; ++i) { for(j = 0;j < m; ++j) { if(mark[j] == false && judgedel(s[i],t[j])) { mark[j] = true; Count++; } } } cout<<Count<<endl; } return 0; } 
                                       ^
0_0_9762574_11356\Main.java:1: 非法字符: \35
#include <iostream> #include <cstring> #include <cstdlib> #include <cstdio> #include <queue> #include <cmath> #include <algorithm> using namespace std; struct P { double x,y,z; }; double er; bool judgedel(P S,P T) { double a,b,c,Maxlen; a = (S.x-T.x)*(S.x-T.x) + (S.y-T.y)*(S.y-T.y) + (S.z-T.z)*(S.z-T.z); b = T.x*T.x + T.y*T.y + T.z+T.z; c = S.x*S.x + S.y*S.y + S.z*S.z; Maxlen = c - er; if(a <= Maxlen) return true; return false; } int main() { int i,j; int n,m,Count; bool mark[110]; P s[110],t[110]; er = 20000.0/acos(-1); er *= er; while(scanf("%d %d",&n,&m) && (n||m)) { for(i = 0;i < n; ++i) cin>>s[i].x>>s[i].y>>s[i].z; for(j = 0;j < m; ++j) cin>>t[j].x>>t[j].y>>t[j].z; memset(mark,false,sizeof(mark)); Count = 0; for(i = 0;i < n; ++i) { for(j = 0;j < m; ++j) { if(mark[j] == false && judgedel(s[i],t[j])) { mark[j] = true; Count++; } } } cout<<Count<<endl; } return 0; } 
                                                          ^
0_0_9762574_11356\Main.java:1: 非法字符: \35
#include <iostream> #include <cstring> #include <cstdlib> #include <cstdio> #include <queue> #include <cmath> #include <algorithm> using namespace std; struct P { double x,y,z; }; double er; bool judgedel(P S,P T) { double a,b,c,Maxlen; a = (S.x-T.x)*(S.x-T.x) + (S.y-T.y)*(S.y-T.y) + (S.z-T.z)*(S.z-T.z); b = T.x*T.x + T.y*T.y + T.z+T.z; c = S.x*S.x + S.y*S.y + S.z*S.z; Maxlen = c - er; if(a <= Maxlen) return true; return false; } int main() { int i,j; int n,m,Count; bool mark[110]; P s[110],t[110]; er = 20000.0/acos(-1); er *= er; while(scanf("%d %d",&n,&m) && (n||m)) { for(i = 0;i < n; ++i) cin>>s[i].x>>s[i].y>>s[i].z; for(j = 0;j < m; ++j) cin>>t[j].x>>t[j].y>>t[j].z; memset(mark,false,sizeof(mark)); Count = 0; for(i = 0;i < n; ++i) { for(j = 0;j < m; ++j) { if(mark[j] == false && judgedel(s[i],t[j])) { mark[j] = true; Count++; } } } cout<<Count<<endl; } return 0; } 
                                                                            ^
0_0_9762574_11356\Main.java:1: 非法字符: \35
#include <iostream> #include <cstring> #include <cstdlib> #include <cstdio> #include <queue> #include <cmath> #include <algorithm> using namespace std; struct P { double x,y,z; }; double er; bool judgedel(P S,P T) { double a,b,c,Maxlen; a = (S.x-T.x)*(S.x-T.x) + (S.y-T.y)*(S.y-T.y) + (S.z-T.z)*(S.z-T.z); b = T.x*T.x + T.y*T.y + T.z+T.z; c = S.x*S.x + S.y*S.y + S.z*S.z; Maxlen = c - er; if(a <= Maxlen) return true; return false; } int main() { int i,j; int n,m,Count; bool mark[110]; P s[110],t[110]; er = 20000.0/acos(-1); er *= er; while(scanf("%d %d",&n,&m) && (n||m)) { for(i = 0;i < n; ++i) cin>>s[i].x>>s[i].y>>s[i].z; for(j = 0;j < m; ++j) cin>>t[j].x>>t[j].y>>t[j].z; memset(mark,false,sizeof(mark)); Count = 0; for(i = 0;i < n; ++i) { for(j = 0;j < m; ++j) { if(mark[j] == false && judgedel(s[i],t[j])) { mark[j] = true; Count++; } } } cout<<Count<<endl; } return 0; } 
                                                                                             ^
0_0_9762574_11356\Main.java:1: 非法字符: \35
#include <iostream> #include <cstring> #include <cstdlib> #include <cstdio> #include <queue> #include <cmath> #include <algorithm> using namespace std; struct P { double x,y,z; }; double er; bool judgedel(P S,P T) { double a,b,c,Maxlen; a = (S.x-T.x)*(S.x-T.x) + (S.y-T.y)*(S.y-T.y) + (S.z-T.z)*(S.z-T.z); b = T.x*T.x + T.y*T.y + T.z+T.z; c = S.x*S.x + S.y*S.y + S.z*S.z; Maxlen = c - er; if(a <= Maxlen) return true; return false; } int main() { int i,j; int n,m,Count; bool mark[110]; P s[110],t[110]; er = 20000.0/acos(-1); er *= er; while(scanf("%d %d",&n,&m) && (n||m)) { for(i = 0;i < n; ++i) cin>>s[i].x>>s[i].y>>s[i].z; for(j = 0;j < m; ++j) cin>>t[j].x>>t[j].y>>t[j].z; memset(mark,false,sizeof(mark)); Count = 0; for(i = 0;i < n; ++i) { for(j = 0;j < m; ++j) { if(mark[j] == false && judgedel(s[i],t[j])) { mark[j] = true; Count++; } } } cout<<Count<<endl; } return 0; } 
                                                                                                              ^
0_0_9762574_11356\Main.java:1: 需要为 class、interface 或 enum
#include <iostream> #include <cstring> #include <cstdlib> #include <cstdio> #include <queue> #include <cmath> #include <algorithm> using namespace std; struct P { double x,y,z; }; double er; bool judgedel(P S,P T) { double a,b,c,Maxlen; a = (S.x-T.x)*(S.x-T.x) + (S.y-T.y)*(S.y-T.y) + (S.z-T.z)*(S.z-T.z); b = T.x*T.x + T.y*T.y + T.z+T.z; c = S.x*S.x + S.y*S.y + S.z*S.z; Maxlen = c - er; if(a <= Maxlen) return true; return false; } int main() { int i,j; int n,m,Count; bool mark[110]; P s[110],t[110]; er = 20000.0/acos(-1); er *= er; while(scanf("%d %d",&n,&m) && (n||m)) { for(i = 0;i < n; ++i) cin>>s[i].x>>s[i].y>>s[i].z; for(j = 0;j < m; ++j) cin>>t[j].x>>t[j].y>>t[j].z; memset(mark,false,sizeof(mark)); Count = 0; for(i = 0;i < n; ++i) { for(j = 0;j < m; ++j) { if(mark[j] == false && judgedel(s[i],t[j])) { mark[j] = true; Count++; } } } cout<<Count<<endl; } return 0; } 
                                                                                                                                                        ^
0_0_9762574_11356\Main.java:1: 需要为 class、interface 或 enum
#include <iostream> #include <cstring> #include <cstdlib> #include <cstdio> #include <queue> #include <cmath> #include <algorithm> using namespace std; struct P { double x,y,z; }; double er; bool judgedel(P S,P T) { double a,b,c,Maxlen; a = (S.x-T.x)*(S.x-T.x) + (S.y-T.y)*(S.y-T.y) + (S.z-T.z)*(S.z-T.z); b = T.x*T.x + T.y*T.y + T.z+T.z; c = S.x*S.x + S.y*S.y + S.z*S.z; Maxlen = c - er; if(a <= Maxlen) return true; return false; } int main() { int i,j; int n,m,Count; bool mark[110]; P s[110],t[110]; er = 20000.0/acos(-1); er *= er; while(scanf("%d %d",&n,&m) && (n||m)) { for(i = 0;i < n; ++i) cin>>s[i].x>>s[i].y>>s[i].z; for(j = 0;j < m; ++j) cin>>t[j].x>>t[j].y>>t[j].z; memset(mark,false,sizeof(mark)); Count = 0; for(i = 0;i < n; ++i) { for(j = 0;j < m; ++j) { if(mark[j] == false && judgedel(s[i],t[j])) { mark[j] = true; Count++; } } } cout<<Count<<endl; } return 0; } 
                                                                                                                                                                                 ^
0_0_9762574_11356\Main.java:1: 需要为 class、interface 或 enum
#include <iostream> #include <cstring> #include <cstdlib> #include <cstdio> #include <queue> #include <cmath> #include <algorithm> using namespace std; struct P { double x,y,z; }; double er; bool judgedel(P S,P T) { double a,b,c,Maxlen; a = (S.x-T.x)*(S.x-T.x) + (S.y-T.y)*(S.y-T.y) + (S.z-T.z)*(S.z-T.z); b = T.x*T.x + T.y*T.y + T.z+T.z; c = S.x*S.x + S.y*S.y + S.z*S.z; Maxlen = c - er; if(a <= Maxlen) return true; return false; } int main() { int i,j; int n,m,Count; bool mark[110]; P s[110],t[110]; er = 20000.0/acos(-1); er *= er; while(scanf("%d %d",&n,&m) && (n||m)) { for(i = 0;i < n; ++i) cin>>s[i].x>>s[i].y>>s[i].z; for(j = 0;j < m; ++j) cin>>t[j].x>>t[j].y>>t[j].z; memset(mark,false,sizeof(mark)); Count = 0; for(i = 0;i < n; ++i) { for(j = 0;j < m; ++j) { if(mark[j] == false && judgedel(s[i],t[j])) { mark[j] = true; Count++; } } } cout<<Count<<endl; } return 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-11-18 01:31:59, Gzip enabled