0_0_34644571_133\Main.java:1: 错误: 非法字符: '#'
#include "bits/stdc++.h"
^
0_0_34644571_133\Main.java:1: 错误: 需要class, interface或enum
#include "bits/stdc++.h"
^
0_0_34644571_133\Main.java:5: 错误: 非法字符: '#'
#define PI 3.1415926
^
0_0_34644571_133\Main.java:5: 错误: 需要class, interface或enum
#define PI 3.1415926
^
0_0_34644571_133\Main.java:9: 错误: 需要class, interface或enum
double y;
^
0_0_34644571_133\Main.java:10: 错误: 需要class, interface或enum
double z;
^
0_0_34644571_133\Main.java:11: 错误: 需要class, interface或enum
double d;
^
0_0_34644571_133\Main.java:12: 错误: 需要class, interface或enum
explicit Satellite(double x=0.f, double y=0.f, double z=0.f){
^
0_0_34644571_133\Main.java:14: 错误: 需要class, interface或enum
this->y = y;
^
0_0_34644571_133\Main.java:15: 错误: 需要class, interface或enum
this->z = z;
^
0_0_34644571_133\Main.java:16: 错误: 需要class, interface或enum
this->d = sqrt((x*x+y*y+z*z)-pow(20000/PI, 2));
^
0_0_34644571_133\Main.java:17: 错误: 需要class, interface或enum
}
^
0_0_34644571_133\Main.java:20: 错误: 需要class, interface或enum
int main()
^
0_0_34644571_133\Main.java:24: 错误: 需要class, interface或enum
cin >> k >> m;
^
0_0_34644571_133\Main.java:25: 错误: 需要class, interface或enum
if(!k&&!m) return 0;
^
0_0_34644571_133\Main.java:26: 错误: 需要class, interface或enum
vector<Satellite> satellites;
^
0_0_34644571_133\Main.java:27: 错误: 需要class, interface或enum
double x, y, z;
^
0_0_34644571_133\Main.java:28: 错误: 需要class, interface或enum
for(int i=0; i<k; ++i){
^
0_0_34644571_133\Main.java:28: 错误: 需要class, interface或enum
for(int i=0; i<k; ++i){
^
0_0_34644571_133\Main.java:28: 错误: 需要class, interface或enum
for(int i=0; i<k; ++i){
^
0_0_34644571_133\Main.java:30: 错误: 需要class, interface或enum
satellites.emplace_back(Satellite(x, y, z));
^
0_0_34644571_133\Main.java:31: 错误: 需要class, interface或enum
}
^
0_0_34644571_133\Main.java:33: 错误: 需要class, interface或enum
for(int i=0; i<m; ++i){
^
0_0_34644571_133\Main.java:33: 错误: 需要class, interface或enum
for(int i=0; i<m; ++i){
^
0_0_34644571_133\Main.java:33: 错误: 需要class, interface或enum
for(int i=0; i<m; ++i){
^
0_0_34644571_133\Main.java:35: 错误: 需要class, interface或enum
for(auto &satellite: satellites){
^
0_0_34644571_133\Main.java:38: 错误: 需要class, interface或enum
if(distance<=satellite.d){
^
0_0_34644571_133\Main.java:40: 错误: 需要class, interface或enum
break;
^
0_0_34644571_133\Main.java:41: 错误: 需要class, interface或enum
}
^
0_0_34644571_133\Main.java:45: 错误: 需要class, interface或enum
}
^
0_0_34644571_133\Main.java:47: 错误: 需要class, interface或enum
}
^
31 个错误
|